summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-01-20 11:33:37 -0500
committerScott Ullrich <sullrich@pfsense.org>2011-01-20 11:33:37 -0500
commit09e11b69471b81bb92f72b060fb2e0e8f9d24f78 (patch)
tree1dda1d1d6ebb080734f0adfc3f0638899c4c643e /etc
parentf0695975e8c20c15dcbcaf5cae598e4b7d3b1b23 (diff)
downloadpfsense-09e11b69471b81bb92f72b060fb2e0e8f9d24f78.zip
pfsense-09e11b69471b81bb92f72b060fb2e0e8f9d24f78.tar.gz
Comment what this variable does
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pkg-utils.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 7ca5ed3..1560442 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -313,7 +313,8 @@ function uninstall_package($pkg_name) {
global $config, $static_output;
global $builder_package_install;
- // Back up /usr/local/lib libraries first
+ // Back up /usr/local/lib libraries first if
+ // not running from the builder code.
if(!$builder_package_install) {
if(!file_exists("/tmp/pkg_libs.tgz")) {
$static_output .= "Backing up libraries... ";
@@ -335,7 +336,8 @@ function uninstall_package($pkg_name) {
}
delete_package_xml($pkg_name);
- // Restore libraries that we backed up
+ // Restore libraries that we backed up if not
+ // running from the builder code.
if(!$builder_package_install) {
$static_output .= "Cleaning up... ";
update_output_window($static_output);
@@ -355,6 +357,8 @@ function sync_package($pkg_name, $sync_depends = true, $show_message = false) {
global $config, $config_parsed;
global $builder_package_install;
+ // If this code is being called by pfspkg_installer
+ // which the builder system uses then return (ignore).
if($builder_package_install)
return;
OpenPOWER on IntegriCloud