summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-24 02:18:46 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-24 02:18:46 +0000
commitbcef448185aafaa7fd371fadba19006f23b62e69 (patch)
tree69adf128d69f5ec83135cc00041fa5563c488a75 /etc/inc/pkg-utils.inc
parent816f2e586f3d28dd96adb8a3ca873e0f773ca8df (diff)
downloadpfsense-bcef448185aafaa7fd371fadba19006f23b62e69.zip
pfsense-bcef448185aafaa7fd371fadba19006f23b62e69.tar.gz
Alert user when untarring file and checking. It appears the gui is frozen during this period for large tar files.
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r--etc/inc/pkg-utils.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index f752ec7..796bbdc 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -272,6 +272,8 @@ function pkg_fetch_recursive($pkgname, $filename, $dependlevel = 0, $base_url =
$static_output .= "\n" . str_repeat(" ", $dependlevel * 2) . $pkgname . " ";
$fetchto = "/tmp/apkg_" . $pkgname . $pkg_extension;
download_file_with_progress_bar($base_url . '/' . $filename, $fetchto);
+ $static_output .= "Extracting and checking {$pkgname} {$pkg_extension} ... ";
+ update_output_window($static_output);
exec("/usr/bin/tar --fast-read -O -f {$fetchto} -x +CONTENTS 2>&1", $slaveout);
$workingdir = preg_grep("/instmp/", $slaveout);
$workingdir = $workingdir[0];
OpenPOWER on IntegriCloud