Revision 0831bc86
Added by Scott Ullrich over 19 years ago
etc/inc/pkg-utils.inc | ||
---|---|---|
156 | 156 |
* |
157 | 157 |
*/ |
158 | 158 |
function get_pkg_depends($pkg_name, $filetype = ".xml", $format = "files", $return_nosync = 1) { |
159 |
global $config; |
|
159 |
global $config; |
|
160 |
$pkg_id = get_pkg_id($pkg_name); |
|
160 | 161 |
if(!is_numeric($pkg_name)) { |
161 |
$pkg_id = get_pkg_id($pkg_name); |
|
162 | 162 |
if($pkg_id == -1) return -1; // This package doesn't really exist - exit the function. |
163 | 163 |
} else { |
164 | 164 |
if(!isset($config['installedpackages']['package'][$pkg_id])) return; // No package belongs to the pkg_id passed to this function. |
... | ... | |
236 | 236 |
* The code is obviously wrong, but I'm not sure what it's supposed to do? |
237 | 237 |
*/ |
238 | 238 |
if(isset($pkg_config['nosync'])) continue; |
239 |
if($pkg['custom_php_global_functions'] <> "") |
|
240 |
eval($pkg['custom_php_global_functions']); |
|
239 |
if($pkg_config['custom_php_global_functions'] <> "")
|
|
240 |
eval($pkg_config['custom_php_global_functions']);
|
|
241 | 241 |
if($pkg_config['custom_php_resync_config_command'] <> "") |
242 | 242 |
eval($pkg_config['custom_php_resync_config_command']); |
243 | 243 |
if($sync_depends == true) { |
Also available in: Unified diff
Fix bugs found by eclipse