If <prefix> does not exist, then call safe_mkdir on it.

This commit is contained in:
Scott Ullrich 2008-10-19 03:38:34 +00:00
parent 6e0df0d5f6
commit 57a709ff68

View File

@ -624,6 +624,8 @@ function install_package_xml($pkg) {
} else {
$prefix = "/usr/local/pkg/";
}
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);