diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 35ea943..cb77914 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -565,7 +565,9 @@ function install_package_xml($pkg) { } else { $prefix = "/usr/local/pkg/"; } - $static_output .= $filename . " "; + if(!is_dir($prefix)) + safe_mkdir($prefix); + $static_output .= $filename . " "; update_output_window($static_output); download_file_with_progress_bar($afn['item'][0], $prefix . $filename); if(stristr($filename, ".tgz") <> "") { |