summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-04-19 08:31:32 -0300
committerRenato Botelho <renato@netgate.com>2017-04-19 08:32:32 -0300
commit54e2da9ec6109deed1f497d6f4bec94a30743d2f (patch)
tree5c6d32d407faf7b31159a42a3fe58d69101af3e1
parent8ad6e37565a2ffc61ba878788f2e5996b0c1d36e (diff)
downloadpfsense-54e2da9ec6109deed1f497d6f4bec94a30743d2f.zip
pfsense-54e2da9ec6109deed1f497d6f4bec94a30743d2f.tar.gz
Remove redundant check, get_pkg_info() call uses a parameter to return only installed packages
-rw-r--r--src/etc/inc/pkg-utils.inc5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/etc/inc/pkg-utils.inc b/src/etc/inc/pkg-utils.inc
index a76040c..40efc0d 100644
--- a/src/etc/inc/pkg-utils.inc
+++ b/src/etc/inc/pkg-utils.inc
@@ -542,12 +542,7 @@ function register_all_installed_packages() {
$pkg_info = get_pkg_info('all', true, true);
-
foreach ($pkg_info as $pkg) {
- if (!isset($pkg['installed'])) {
- continue;
- }
-
pkg_remove_prefix($pkg['name']);
if (is_package_installed($pkg['name'])) {
OpenPOWER on IntegriCloud