diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-01-20 11:33:37 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-01-20 11:33:37 -0500 |
commit | 09e11b69471b81bb92f72b060fb2e0e8f9d24f78 (patch) | |
tree | 1dda1d1d6ebb080734f0adfc3f0638899c4c643e /etc/inc | |
parent | f0695975e8c20c15dcbcaf5cae598e4b7d3b1b23 (diff) | |
download | pfsense-09e11b69471b81bb92f72b060fb2e0e8f9d24f78.zip pfsense-09e11b69471b81bb92f72b060fb2e0e8f9d24f78.tar.gz |
Comment what this variable does
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 8 |
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; |