From bb2d2a1d5a365d261671c8ac55b8dd1b76ac9fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Tue, 9 Jan 2024 15:39:47 +0100 Subject: [PATCH] Keep all the image in the dpkg versions file --- c2cciutils/scripts/publish.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/c2cciutils/scripts/publish.py b/c2cciutils/scripts/publish.py index 4badbb996..c5b0f1062 100644 --- a/c2cciutils/scripts/publish.py +++ b/c2cciutils/scripts/publish.py @@ -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()}