diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-05-11 00:51:48 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-05-11 00:52:18 -0500 |
commit | 60ec2d7a6f9bb357caca6cf33cbf0c8a84828bda (patch) | |
tree | 6b9655bde19aa89a852f12a3cb64f1501f452bba /src | |
parent | 538a3c04a6b6671151e913b06b2f340b6f8ee222 (diff) | |
download | pfsense-60ec2d7a6f9bb357caca6cf33cbf0c8a84828bda.zip pfsense-60ec2d7a6f9bb357caca6cf33cbf0c8a84828bda.tar.gz |
Rename OSPF and System Patches packages in pre_upgrade_command. Ticket #6118
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/share/pfSense/pre_upgrade_command | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr/local/share/pfSense/pre_upgrade_command b/src/usr/local/share/pfSense/pre_upgrade_command index abbe941..e36a2e8 100644 --- a/src/usr/local/share/pfSense/pre_upgrade_command +++ b/src/usr/local/share/pfSense/pre_upgrade_command @@ -43,7 +43,12 @@ foreach (\$config['installedpackages']['package'] as \$package) { if (isset(\$package['internal_name'])) { \$removed_packages[] = \$package['internal_name']; } else { - \$removed_packages[] = \$package['name']; + \$rename_arr = array("Quagga OSPF" => "Quagga_OSPF", "System Patches" => "System_Patches"); + if (key_exists(\$package['name'], \$rename_arr)) { + \$removed_packages[] = \$rename_arr[\$package['name']]; + } else { + \$removed_packages[] = \$package['name']; + } } ${UNINSTALL}(\$package['name']); } |