Skip to content

Commit

Permalink
Merge pull request #1473 from camptocamp/new-dpkg-versions
Browse files Browse the repository at this point in the history
Keep all the image in the dpkg versions file
  • Loading branch information
sbrunner authored Jan 9, 2024
2 parents b8567a3 + 05d58ee commit da1c0f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions c2cciutils/scripts/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@ def main() -> None:

if not dpkg_success:
current_versions_in_images = {}
if os.path.exists("ci/dpkg-versions.yaml"):
with open("ci/dpkg-versions.yaml", encoding="utf-8") as dpkg_versions_file:
current_versions_in_images = yaml.load(dpkg_versions_file, Loader=yaml.SafeLoader)
for image in images_src:
_, versions_image = c2cciutils.lib.docker.get_dpkg_packages_versions(image)
current_versions_in_images[image] = {k: str(v) for k, v in versions_image.items()}
Expand Down

0 comments on commit da1c0f8

Please sign in to comment.