summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-12-27 13:40:49 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-12-27 13:40:58 -0500
commit6622e126ed73f45979b0f96ccfd8b696cd7a066b (patch)
treed8634419348a9564a2d1424177484dcfad499603 /etc/inc/pkg-utils.inc
parent528992bec1753e3cd87920b4614dcaed9ac6185a (diff)
downloadpfsense-6622e126ed73f45979b0f96ccfd8b696cd7a066b.zip
pfsense-6622e126ed73f45979b0f96ccfd8b696cd7a066b.tar.gz
Unlink needs_package_sync after one pkg has installed OK which means that our internet connection is up.
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r--etc/inc/pkg-utils.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 4a498d7..f9af6a6 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -541,7 +541,8 @@ function install_package($package, $pkg_info = "") {
$changedesc = "Overwrote previous installation of {$pkg_info['name']}.";
$to_output = "overwrite!\n";
}
- /* XXX: Fix inclusion of config.inc that causes data loss! */
+ if(file_exists('/conf/needs_package_sync'))
+ @unlink('/conf/needs_package_sync');
conf_mount_ro();
write_config();
$static_output .= $to_output;
OpenPOWER on IntegriCloud