From 2222532745b381c5e14cceb500c97af07e1ae591 Mon Sep 17 00:00:00 2001 From: Berend de Boer Date: Fri, 22 Nov 2013 11:13:21 +1300 Subject: [PATCH] Don't use pkg_glob when guessing name, else we may think the package is installed when it isn't. --- library/packaging/portinstall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/packaging/portinstall b/library/packaging/portinstall index 4e27cdf12a9..5718c40eb70 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