diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-02-06 20:53:56 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-02-06 20:53:56 +0000 |
commit | 597dd9b9c54326ccb5fc7111f89dfdb1e9dac968 (patch) | |
tree | 850ac66c4b4f2cf358ec41a2e41c854a902e17a3 /etc/inc/pkg-utils.inc | |
parent | 7ccf993186b6efc74dd0044f3055e01780f00af7 (diff) | |
download | pfsense-597dd9b9c54326ccb5fc7111f89dfdb1e9dac968.zip pfsense-597dd9b9c54326ccb5fc7111f89dfdb1e9dac968.tar.gz |
When package include files do not exist, simply reinstall package.
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 3 |
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']); } } |