summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-09-22 14:44:01 -0300
committerRenato Botelho <renato@netgate.com>2015-09-22 14:44:01 -0300
commit6ed6941d91d4ebc25e574c0bd5e8053179e3d13e (patch)
tree535c96dd3df7c939eff9fd9d98e6e7bab68251d8 /src
parentd3f6888f1255065edaccdf8ee8eb66dd9cbb22da (diff)
downloadpfsense-6ed6941d91d4ebc25e574c0bd5e8053179e3d13e.zip
pfsense-6ed6941d91d4ebc25e574c0bd5e8053179e3d13e.tar.gz
Use pkg info -e to check if package is installed, it only returns 0/1 without printing anything
Diffstat (limited to 'src')
-rw-r--r--src/etc/inc/pkg-utils.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/pkg-utils.inc b/src/etc/inc/pkg-utils.inc
index 01de1ce..d4a1ec4 100644
--- a/src/etc/inc/pkg-utils.inc
+++ b/src/etc/inc/pkg-utils.inc
@@ -232,7 +232,7 @@ function is_pkg_installed($pkg_name) {
pkg_remove_prefix($pkg_name);
- return pkg_call("info " . $g['pkg_prefix'] . $pkg_name, true);
+ return pkg_call("info -e " . $g['pkg_prefix'] . $pkg_name, true);
}
/* Install package, $pkg_name should not contain prefix */
OpenPOWER on IntegriCloud