From a983b48bc1fddd73eb060f8564550bc7613b1bae Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 9 Jul 2009 18:06:56 -0400 Subject: [PATCH] Do not show packages on nanobsd --- usr/local/www/pkg_mgr.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php index 7e160df42e..4af1b53f97 100755 --- a/usr/local/www/pkg_mgr.php +++ b/usr/local/www/pkg_mgr.php @@ -27,6 +27,7 @@ POSSIBILITY OF SUCH DAMAGE. */ +require_once("globals.inc"); require_once("guiconfig.inc"); require_once("pkg-utils.inc"); @@ -121,7 +122,9 @@ include("fbegin.inc"); if(in_array($index['name'], $instpkgs)) continue; $dot = strpos($index['required_version'], "."); $index['major_version'] = substr($index['required_version'], 0, $dot); - + if($g['platform'] == "nanobsd") + if($index['noembedded']) + continue; if ($version <> "HEAD" && $index['required_version'] == "HEAD" && $requested_version <> "other") { continue; }