Skip to content

Commit

Permalink
Merge pull request #1474 from camptocamp/backport/1473-to-master
Browse files Browse the repository at this point in the history
[Backport master] Keep all the image in the dpkg versions file
  • Loading branch information
sbrunner authored Jan 9, 2024
2 parents 522d163 + bb2d2a1 commit 032313e
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 032313e

Please sign in to comment.