From 4460f4b44b67490b6274bd43e08e191677a329ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 9 Jan 2025 15:09:00 +0100 Subject: [PATCH] Publish: clone the image dict --- c2cciutils/scripts/publish.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/c2cciutils/scripts/publish.py b/c2cciutils/scripts/publish.py index f3db17aa..b2256b53 100644 --- a/c2cciutils/scripts/publish.py +++ b/c2cciutils/scripts/publish.py @@ -399,6 +399,8 @@ def main() -> None: 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: + if image in current_versions_in_images: + current_versions_in_images[image] = dict(current_versions_in_images[image]) _, versions_image = c2cciutils.lib.docker.get_dpkg_packages_versions(image) for dpkg_package, package_version in versions_image.items(): if dpkg_package not in current_versions_in_images.get(image, {}):