Project

General

Profile

« Previous | Next » 

Revision 4075d9c1

Added by Scott Ullrich over 20 years ago

Log when the package installation untars an archive

View differences:

usr/local/www/pkg_mgr_install.php
430 430
                                        fwrite($fd_log, "Downloading additional files needed for package " . $filename . " ...\n");
431 431
                                        update_status("Downloading additional files needed for package " . $filename . " ...\n");
432 432
                                        system("cd /usr/local/pkg && /usr/bin/fetch " .  $afn . " 2>/dev/null");
433
                                        if(stristr($filename, '.tgz') <> "") {
433
                                        if(stristr($filename, ".tgz") <> "") {
434 434
                                                    update_status("Extracting tgz archive to -C for " . $filename);
435
                                                    fwrite($fd_log, "Extracting tgz archive to -C for " . $filename . " ...\n");
435 436
                                                    system("cd /usr/local/pkg && tar xzvf " . $filename . " -C / >/dev/null 2>&1");
436 437
                                        }
437 438
                            }

Also available in: Unified diff