summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-01-06 16:39:12 -0500
committerScott Ullrich <sullrich@pfsense.org>2011-01-06 16:39:12 -0500
commit550fea7a19a8bba289e7a221389da534f5df4c5d (patch)
treed850f1af602fc7bb6f2d730c677a2d120f622aa8
parent7aa9ab00ab42f2d386829d2592cb910557ebf899 (diff)
downloadpfsense-550fea7a19a8bba289e7a221389da534f5df4c5d.zip
pfsense-550fea7a19a8bba289e7a221389da534f5df4c5d.tar.gz
Do not unlink file, it's handled by behind the scenes pkg-utils.inc code
-rw-r--r--etc/inc/pkg-utils.inc1
-rwxr-xr-xetc/rc.bootup1
2 files changed, 0 insertions, 2 deletions
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');
}
}
}
OpenPOWER on IntegriCloud