diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-10-19 03:38:34 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-10-19 03:38:34 +0000 |
commit | 57a709ff682825ec641acbc45ef4d57c834e5d44 (patch) | |
tree | 3fee200974b6320891c29c07e69fafcafc61478c /etc/inc/pkg-utils.inc | |
parent | 6e0df0d5f6f82c34271f1cd9cc0377850f32727c (diff) | |
download | pfsense-57a709ff682825ec641acbc45ef4d57c834e5d44.zip pfsense-57a709ff682825ec641acbc45ef4d57c834e5d44.tar.gz |
If <prefix> does not exist, then call safe_mkdir on it.
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 2 |
1 files changed, 2 insertions, 0 deletions
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); |