diff options
author | Renato Botelho <renato@netgate.com> | 2015-09-22 14:10:01 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-09-22 14:10:01 -0300 |
commit | a50534b6078319711cbe8b31d164b30b28addec6 (patch) | |
tree | 4736e4f30a1d9ee8bee9a82e02f5d055535810c9 /src/etc | |
parent | 5c22f8ef690407a3c0b53c28fabfa27d713b6409 (diff) | |
download | pfsense-a50534b6078319711cbe8b31d164b30b28addec6.zip pfsense-a50534b6078319711cbe8b31d164b30b28addec6.tar.gz |
Take internal_name into consideration when looking for package id
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/inc/pkg-utils.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/etc/inc/pkg-utils.inc b/src/etc/inc/pkg-utils.inc index 3e0fd7a..d802e63 100644 --- a/src/etc/inc/pkg-utils.inc +++ b/src/etc/inc/pkg-utils.inc @@ -280,7 +280,8 @@ function get_package_id($package_name) { } foreach ($config['installedpackages']['package'] as $idx => $pkg) { - if ($pkg['name'] == $package_name) { + if ($pkg['name'] == $package_name || + get_package_internal_name($pkg) == $package_name) { return $idx; } } |