mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-04 07:19:10 -07:00
Merge pull request #4998 from berenddeboer/portinstall-fix
When name has digits in it, we may incorrectly determine package is already installed
This commit is contained in:
commit
e0b0a89231
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue