summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-06 20:53:56 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-06 20:53:56 +0000
commit597dd9b9c54326ccb5fc7111f89dfdb1e9dac968 (patch)
tree850ac66c4b4f2cf358ec41a2e41c854a902e17a3 /etc
parent7ccf993186b6efc74dd0044f3055e01780f00af7 (diff)
downloadpfsense-597dd9b9c54326ccb5fc7111f89dfdb1e9dac968.zip
pfsense-597dd9b9c54326ccb5fc7111f89dfdb1e9dac968.tar.gz
When package include files do not exist, simply reinstall package.
Diffstat (limited to 'etc')
-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 2395f23..2a07c7f 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -124,6 +124,7 @@ function resync_all_package_configs($show_message = false) {
if($show_message == true) print "Syncing packages:";
foreach($config['installedpackages']['package'] as $package) {
if($show_message == true) print " " . $package['name'];
+ get_pkg_depends($package['name'], "all");
sync_package($i, true, true);
$i++;
}
@@ -248,7 +249,7 @@ function sync_package($pkg_name, $sync_depends = true, $show_message = false) {
require_once($include_file);
} else {
log_error("Could not locate {$include_file}.");
- force_remove_package($package['name']);
+ install_package($package['name']);
}
}
OpenPOWER on IntegriCloud