From 06e2abdbc07c727fd55d213008ecfe0a604ed6af Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 19 Feb 2005 17:08:34 +0000 Subject: Additional logging during installation for additional files needed --- usr/local/www/pkg_mgr_install.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index 6ca0fd6..63743b0 100755 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -424,10 +424,13 @@ foreach ($packages_to_install as $id) { update_progress_bar($pb_percent); $pb_percent += 10; $filename = get_filename_from_url($afn); + fwrite($fd_log, "Downloading additional files needed for package " . $filename . " ..."); update_status("Downloading additional files needed for package " . $filename . " ..."); system("cd /usr/local/pkg && /usr/bin/fetch " . $afn . " 2>/dev/null"); - if(stristr($filename, '.tgz') <> "") + if(stristr($filename, '.tgz') <> "") { + update_status("Extracting tgz archive to -C for " . $filename); system("cd /usr/local/pkg && tar xzvf " . $filename . " -C / >/dev/null 2>&1"); + } } } -- cgit v1.1