tag-publish 1.3.0.dev26__tar.gz → 1.4.0.dev2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tag-publish
3
- Version: 1.3.0.dev26
3
+ Version: 1.4.0.dev2
4
4
  Summary: Tools used to publish Python packages, Docker images and Helm charts for GitHub tag and branch
5
5
  License: FreeBSD
6
6
  License-File: LICENSE
@@ -96,7 +96,7 @@ include = [
96
96
  ]
97
97
  requires-python = ">=3.11"
98
98
  dependencies = ["PyYAML<7,>=6", "security-md<2,>=1", "githubkit<1,>=0"]
99
- version = "1.3.0.dev26"
99
+ version = "1.4.0.dev2"
100
100
 
101
101
  [project.optional-dependencies]
102
102
  pypi = ["requests<3,>=2", "twine<7,>=6", "id<2,>=1"]
@@ -59,8 +59,11 @@ def get_dpkg_packages_versions(
59
59
  print(f"Found distribution '{distribution_final}', release '{release_final}'.")
60
60
 
61
61
  package_version: dict[str, Version] = {}
62
+ # `dpkg --status` without a package name is refused by the old dpkg of Ubuntu 18.04
63
+ # (`dpkg-query: error: --status needs at least one package name argument`), the status database
64
+ # is read directly, it is what `dpkg --status` prints.
62
65
  packages_status_process = subprocess.run(
63
- ["docker", "run", "--rm", "--entrypoint=", image, "dpkg", "--status"],
66
+ ["docker", "run", "--rm", "--entrypoint=", image, "cat", "/var/lib/dpkg/status"],
64
67
  stdout=subprocess.PIPE,
65
68
  check=True,
66
69
  )