Skip to content

Commit

Permalink
Merge pull request #1000 from camptocamp/fix-dpkg
Browse files Browse the repository at this point in the history
Fix get dpkg, add version in message
  • Loading branch information
sbrunner authored Feb 7, 2023
2 parents 0c715f4 + 1257966 commit 1330029
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions c2cciutils/lib/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,9 @@ def check_versions(
success = True
for package, version in versions_image.items():
if package not in versions_config:
print(f"Package {package} is not in the config file for the image {image}")
print(f"Package {package} with version {version} is not in the config file for the image {image}")
success = False

if Version.from_string(versions_config[package]) > version:
elif Version.from_string(versions_config[package]) > version:
print(
f"Package {package} is older than the config file for the image {image}: "
f"{versions_config[package]} > {version}."
Expand Down

0 comments on commit 1330029

Please sign in to comment.