1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Don't use pkg_glob when guessing name, else we may think the package

is installed when it isn't.
This commit is contained in:
Berend de Boer 2013-11-22 11:13:21 +13:00
parent 607680c221
commit 2222532745

View file

@ -89,7 +89,7 @@ def query_package(module, name):
if pkgng: if pkgng:
rc, out, err = module.run_command("%s %s" % (pkg_info_path, name_without_digits)) rc, out, err = module.run_command("%s %s" % (pkg_info_path, name_without_digits))
else: else:
rc, out, err = module.run_command("%s `%s %s`" % (pkg_info_path, pkg_glob_path, name_without_digits)) rc, out, err = module.run_command("%s %s" % (pkg_info_path, name_without_digits))
found = rc == 0 found = rc == 0