diff options
author | Renato Botelho <renato@netgate.com> | 2015-09-22 14:44:01 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-09-22 14:44:01 -0300 |
commit | 6ed6941d91d4ebc25e574c0bd5e8053179e3d13e (patch) | |
tree | 535c96dd3df7c939eff9fd9d98e6e7bab68251d8 /src/etc | |
parent | d3f6888f1255065edaccdf8ee8eb66dd9cbb22da (diff) | |
download | pfsense-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/etc')
-rw-r--r-- | src/etc/inc/pkg-utils.inc | 2 |
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 */ |