diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-05-07 11:52:07 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-05-07 11:52:07 -0300 |
commit | 106574d1858008c03fbe9df94975350a09d78fa9 (patch) | |
tree | 33adf6d2bef6b589c7ae09f2c0c5a30e37a77588 /etc | |
parent | 24fa00fc9abdb486ee0d212131d0395e258ee4fb (diff) | |
download | pfsense-106574d1858008c03fbe9df94975350a09d78fa9.zip pfsense-106574d1858008c03fbe9df94975350a09d78fa9.tar.gz |
Remove unecessary function force_remove_package()
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 290bb19..6a76e44 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -343,10 +343,6 @@ function uninstall_package($pkg_name) { update_output_window($static_output); } -function force_remove_package($pkg_name) { - delete_package_xml($pkg_name); -} - /* * sync_package($pkg_name, $sync_depends = true, $show_message = false) Force a package to setup its configuration and rc.d files. */ @@ -379,7 +375,7 @@ function sync_package($pkg_name, $sync_depends = true, $show_message = false) { $package =& $config['installedpackages']['package'][$pkg_id]; if (!file_exists("/usr/local/pkg/" . $package['configurationfile'])) { log_error(sprintf(gettext("The %s package is missing its configuration file and must be reinstalled."), $package['name'])); - force_remove_package($package['name']); + delete_package_xml($package['name']); return -1; } $pkg_config = parse_xml_config_pkg("/usr/local/pkg/" . $package['configurationfile'], "packagegui"); |