From 04dd9b0464a437df9a8a44312f4842629b46b415 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 7 May 2015 13:27:19 -0300 Subject: Do not try to install package since it's already installed at this point --- etc/inc/pkg-utils.inc | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'etc/inc/pkg-utils.inc') diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 6529994..3eee510 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -571,36 +571,6 @@ function install_package_xml($pkg) { $pkg_info = $config['installedpackages']['package'][$pkgid]; } - /* pkg_add the package and its dependencies */ - if ($pkg_info['depends_on_package_base_url'] != "") { - if ($pkg_interface == "console") { - echo "\n"; - } - update_status(gettext("Installing") . " " . $pkg_info['name'] . " " . gettext("and its dependencies.")); - $static_output .= gettext("Downloading") . " " . $pkg_info['name'] . " " . gettext("and its dependencies... "); - $static_orig = $static_output; - $static_output .= "\n"; - update_output_window($static_output); - foreach ((array) $pkg_info['depends_on_package_pbi'] as $pkgdep) { - $pkg_name = substr(reverse_strrchr($pkgdep, "."), 0, -1); - $static_output = $static_orig . "\nChecking for package installation... "; - update_output_window($static_output); - if (!is_pkg_installed($pkg_name)) { - if (!pkg_fetch_recursive($pkg_name, $pkgdep, 0, $pkg_info['depends_on_package_base_url'])) { - $static_output .= "of {$pkg_name} failed!\n\nInstallation aborted."; - update_output_window($static_output); - pkg_debug(gettext("Package WAS NOT installed properly.") . "\n"); - if ($pkg_interface <> "console") { - echo "\n"; - echo "\n"; - } - sleep(1); - return false; - } - } - } - } - $configfile = substr(strrchr($pkg_info['config_file'], '/'), 1); if (file_exists("/usr/local/pkg/" . $configfile)) { $static_output .= gettext("Loading package configuration... "); -- cgit v1.1