summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/pkg_mgr.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-10-20 16:46:46 -0200
committerRenato Botelho <renato@netgate.com>2015-10-20 16:46:46 -0200
commit6544cb185b84e535617d5b6c16bf1d2c57226cea (patch)
treea44cd6448bbc81e11355716cfdb1897963c84de8 /src/usr/local/www/pkg_mgr.php
parent7734024685c6097cbf2727dfaaa778798307ccbe (diff)
downloadpfsense-6544cb185b84e535617d5b6c16bf1d2c57226cea.zip
pfsense-6544cb185b84e535617d5b6c16bf1d2c57226cea.tar.gz
Use new installed flag to simplify logic
Diffstat (limited to 'src/usr/local/www/pkg_mgr.php')
-rw-r--r--src/usr/local/www/pkg_mgr.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/usr/local/www/pkg_mgr.php b/src/usr/local/www/pkg_mgr.php
index 1c1505e..f804723 100644
--- a/src/usr/local/www/pkg_mgr.php
+++ b/src/usr/local/www/pkg_mgr.php
@@ -160,8 +160,7 @@ if(!$pkg_info || !is_array($pkg_info)):?>
});
foreach($pkg_info as $index):
-
- if(get_package_id($index['name']) >= 0 ) {
+ if (isset($index['installed'])) {
continue;
}
@@ -172,15 +171,6 @@ if(!$pkg_info || !is_array($pkg_info)):?>
continue;
}
- // Check to see if it is already installed
- if(isset($config['installedpackages']['package'])) {
- foreach($config['installedpackages']['package'] as $installedpkg) {
- if($installedpkg['name'] == $shortname) {
- continue(2);
- }
- }
- }
-
?>
<tr>
<td>
OpenPOWER on IntegriCloud