summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBerend de Boer <berend@pobox.com>2013-11-22 11:13:21 +1300
committerBerend de Boer <berend@pobox.com>2013-11-22 11:13:21 +1300
commit2222532745b381c5e14cceb500c97af07e1ae591 (patch)
tree51582366073909c5e7c40eaafaeb7e4b174e0afe
parent607680c2212047c19b5c76a5d97973cc54b4c457 (diff)
downloadansible-2222532745b381c5e14cceb500c97af07e1ae591.tar.gz
Don't use pkg_glob when guessing name, else we may think the package
is installed when it isn't.
-rw-r--r--library/packaging/portinstall2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/packaging/portinstall b/library/packaging/portinstall
index 4e27cdf12a..5718c40eb7 100644
--- a/library/packaging/portinstall
+++ b/library/packaging/portinstall
@@ -89,7 +89,7 @@ def query_package(module, name):
if pkgng:
rc, out, err = module.run_command("%s %s" % (pkg_info_path, name_without_digits))
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