From 57a709ff682825ec641acbc45ef4d57c834e5d44 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 19 Oct 2008 03:38:34 +0000 Subject: If does not exist, then call safe_mkdir on it. --- etc/inc/pkg-utils.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc/inc/pkg-utils.inc') diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index a33ec2f..afddf9d 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -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); -- cgit v1.1