From 3928c6f1bcf911097366f075994dc9a61716e6e3 Mon Sep 17 00:00:00 2001 From: Stephen Beaver Date: Fri, 9 Oct 2015 10:08:09 -0400 Subject: Further refinement to #5290 Use pkg_remove_prefix() --- src/usr/local/www/pkg_mgr.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/usr/local/www/pkg_mgr.php') diff --git a/src/usr/local/www/pkg_mgr.php b/src/usr/local/www/pkg_mgr.php index c6b5811..f2d1b57 100644 --- a/src/usr/local/www/pkg_mgr.php +++ b/src/usr/local/www/pkg_mgr.php @@ -174,12 +174,9 @@ if(!$pkg_info || !is_array($pkg_info)):?> continue; } - // Get the package basename (because e.g.: sudo is known as pfSense-pkg-sudo) - $basename = str_replace("pfSense-pkg-", "", $index['name']); - // Check to see if it is already installed foreach($config['installedpackages']['package'] as $installedpkg) { - if($installedpkg['name'] == $basename) { + if($installedpkg['name'] == $shortname) { continue(2); } } -- cgit v1.1