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

This commit is contained in:
Scott Ullrich 2008-10-19 03:38:28 +00:00
parent 1834f481e3
commit e6d436e8d0

View File

@ -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") <> "") {