From 550fea7a19a8bba289e7a221389da534f5df4c5d Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 6 Jan 2011 16:39:12 -0500 Subject: Do not unlink file, it's handled by behind the scenes pkg-utils.inc code --- etc/inc/pkg-utils.inc | 1 - etc/rc.bootup | 1 - 2 files changed, 2 deletions(-) (limited to 'etc') diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 0f3e2e5..b36dd59 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -814,7 +814,6 @@ function delete_package($pkg) { $pkg = substr(reverse_strrchr($pkg, "."), 0, -1); - if (file_exists("{$vardb}/{$pkg}/+REQUIRED_BY") && count(file("{$vardb}/{$pkg}/+REQUIRED_BY")) > 0) { $static_output .= "Skipping package deletion for {$pkg} because it is required by other packages.\n"; update_output_window($static_output); diff --git a/etc/rc.bootup b/etc/rc.bootup index 4336ffc..44b398f 100755 --- a/etc/rc.bootup +++ b/etc/rc.bootup @@ -387,7 +387,6 @@ if(file_exists('/conf/needs_package_sync')) { require_once("pkg-utils.inc"); if($g['platform'] == "pfSense" || $g['platform'] == "nanobsd") { pkg_reinstall_all(); - unlink('/conf/needs_package_sync'); } } } -- cgit v1.1