don't shell to call chmod - php does this natively

This commit is contained in:
Bill Marquette 2005-03-16 16:07:25 +00:00
parent 66f481ccaa
commit 4d321b3a02

View File

@ -683,7 +683,8 @@ function get_pkg_depends($pkg_name, $filetype = ".xml", $format = "files", $retu
if(!file_exists($prefix . $pkg_name)) {
log_error("Fetching missing dependency (" . $depend_name . ") for " . $pkg_name);
mwexec("/usr/local/bin/fetch -o " . $prefix . $depend_file . " " . $item['name']['0']);
if($item['chmod'] != "") mwexec("/bin/chmod " . $item['chmod'] . $prefix . $depend_file); // Handle chmods.
if($item['chmod'] != "")
chmod($prefix . $depend_file, $item['chmod']); // Handle chmods.
}
switch ($format) {
case "files":
@ -897,4 +898,4 @@ function sync_package($pkg_name, $sync_depends = true, $show_message = false) {
}
// if($show_message == true) print ".";
}
?>
?>