diff options
author | jim-p <jimp@pfsense.org> | 2010-12-12 18:49:27 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-12-12 18:49:27 -0500 |
commit | c9b08a50f0ba328ac0569247eb2063d34f7e6279 (patch) | |
tree | 58f14f9a882c025bed8444956bc5df952d70e9e9 /etc | |
parent | 96b4c29aea7a818eb421e159840a5bb9b988f213 (diff) | |
download | pfsense-c9b08a50f0ba328ac0569247eb2063d34f7e6279.zip pfsense-c9b08a50f0ba328ac0569247eb2063d34f7e6279.tar.gz |
Show the full URL used to download package files, to aid in tracking down packages that do not install correctly.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index c071215..3c8ca98 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -427,9 +427,10 @@ function pkg_fetch_recursive($pkgname, $filename, $dependlevel = 0, $base_url = $base_url = substr($base_url, 0, -1); $static_output .= "\n" . str_repeat(" ", $dependlevel * 2) . $pkgname . " "; $fetchto = "{$g['tmp_path']}/apkg_{$filename}"; + $static_output .= "\n" . str_repeat(" ", $dependlevel * 2 + 1) . "Trying to download {$base_url}/{$filename} ... "; if (download_file_with_progress_bar("{$base_url}/{$filename}", $fetchto) !== true) { if ($base_url != $priv_url && download_file_with_progress_bar("{$priv_url}/{$filename}", $fetchto) !== true) { - $static_output .= " could not download.\n"; + $static_output .= " could not download from there or {$priv_url}/{$filename}.\n"; update_output_window($static_output); return false; } else if ($base_url == $priv_url) { |