From ce181025ba05331a1acaa1e16004bc5a0d2a2738 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. --- packaging/portinstall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/portinstall b/packaging/portinstall index 4e27cdf12a9..5718c40eb70 100644 --- a/packaging/portinstall +++ b/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