summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.homeunix.net>2009-07-09 18:06:20 -0400
committerScott Ullrich <sullrich@pfsense.homeunix.net>2009-07-09 18:06:20 -0400
commit9bcf197e9f89a47d9ecb23b4bb882bb33a2639b3 (patch)
tree18840886a4ad52174a9ff7e403870e5a67928f11 /usr
parent8ecc250afb511448d68007e6f72a78c0716b57cd (diff)
downloadpfsense-9bcf197e9f89a47d9ecb23b4bb882bb33a2639b3.zip
pfsense-9bcf197e9f89a47d9ecb23b4bb882bb33a2639b3.tar.gz
Do not show <noembedded> packages on nanobsd
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/pkg_mgr.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php
index b81299d..3542742 100755
--- a/usr/local/www/pkg_mgr.php
+++ b/usr/local/www/pkg_mgr.php
@@ -34,7 +34,7 @@
##|*MATCH=pkg_mgr.php*
##|-PRIV
-
+require_once("globals.inc");
require_once("guiconfig.inc");
require_once("pkg-utils.inc");
@@ -122,6 +122,9 @@ include("head.inc");
$index = &$pkg_info[$key];
if(in_array($index['name'], $instpkgs))
continue;
+ if($g['platform'] == "nanobsd")
+ if($index['noembedded'])
+ continue;
$dash = strpos($index['required_version'], "-");
$index['major_version'] = substr($index['required_version'], 0, $dash);
if ($version <> "HEAD" &&
OpenPOWER on IntegriCloud