From 106574d1858008c03fbe9df94975350a09d78fa9 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 7 May 2015 11:52:07 -0300 Subject: Remove unecessary function force_remove_package() --- etc/inc/pkg-utils.inc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'etc') 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"); -- cgit v1.1