diff options
author | Colin Smith <colin@pfsense.org> | 2005-06-06 02:04:05 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-06-06 02:04:05 +0000 |
commit | 89b7daa94f88657642717aa88ff9f0f6f4fc9181 (patch) | |
tree | 12d6a7ef7d959e9b110c1d8efa2447eb96b4a631 /etc | |
parent | a3cd00331855efa4ad0f2ba034159a7194b71e67 (diff) | |
download | pfsense-89b7daa94f88657642717aa88ff9f0f6f4fc9181.zip pfsense-89b7daa94f88657642717aa88ff9f0f6f4fc9181.tar.gz |
* Write /tmp/y
* Fix a few other minor bugs.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 54da25d..e7934c8 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -372,7 +372,6 @@ function install_package($package, $pkg_info = "") { update_output_window($static_output); @fwrite($fd_log, "Downloading package configuration file...\n"); $fetchto = substr(strrchr($pkg_info['config_file'], '/'), 1); - print $fetchto; download_file_with_progress_bar($pkg_info['config_file'], '/usr/local/pkg/' . $fetchto); if(!file_exists('/usr/local/pkg/' . $fetchto)) { @fwrite($fd_log, "ERROR! Unable to fetch package configuration file. Aborting installation.\n"); @@ -389,6 +388,13 @@ function install_package($package, $pkg_info = "") { $static_output .= "done.\n"; update_output_window($static_output); } + /* make 'y' file */ + $fd = fopen("{$g['tmp_path']}/y", "w"); + for($line = 0; $line < 10; $line++) { + fwrite($fd, "y\n"); + } + fclose($fd); + /* pkg_add the package and its dependencies */ if($pkg_info['depends_on_package_base_url'] != "") { update_status("Installing " . $pkg_info['name'] . " and its dependencies."); |