summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-09-22 14:10:01 -0300
committerRenato Botelho <renato@netgate.com>2015-09-22 14:10:01 -0300
commita50534b6078319711cbe8b31d164b30b28addec6 (patch)
tree4736e4f30a1d9ee8bee9a82e02f5d055535810c9 /src/etc
parent5c22f8ef690407a3c0b53c28fabfa27d713b6409 (diff)
downloadpfsense-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.inc3
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;
}
}
OpenPOWER on IntegriCloud