Project

General

Profile

« Previous | Next » 

Revision 3928c6f1

Added by Stephen Beaver over 9 years ago

Further refinement to #5290
Use pkg_remove_prefix()

View differences:

src/usr/local/www/pkg_mgr.php
174 174
			continue;
175 175
		}
176 176

  
177
		// Get the package basename (because e.g.: sudo is known as pfSense-pkg-sudo)
178
		$basename = str_replace("pfSense-pkg-", "", $index['name']);
179

  
180 177
		// Check to see if it is already installed
181 178
		foreach($config['installedpackages']['package'] as $installedpkg) {
182
			if($installedpkg['name'] == $basename) {
179
			if($installedpkg['name'] == $shortname) {
183 180
				continue(2);
184 181
			}
185 182
		}

Also available in: Unified diff