[stable-2.7] apt_rpm: fix package install check (#8263) (#8271)

apt_rpm: fix package install check (#8263)

Fix package install check.

(cherry picked from commit 17e11d7d7e)
This commit is contained in:
Felix Fontein
2024-04-22 06:53:24 +02:00
committed by GitHub
parent 32338f14e5
commit 12b39987a0
2 changed files with 3 additions and 1 deletions

View File

@@ -204,7 +204,7 @@ def install_packages(module, pkgspec):
rc, out, err = module.run_command("%s -y install %s" % (APT_PATH, packages), environ_update={"LANG": "C"})
installed = True
for packages in pkgspec:
for package in pkgspec:
if not query_package_provides(module, package):
installed = False