diff options
author | Colin Smith <colin@pfsense.org> | 2005-05-02 15:49:32 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-05-02 15:49:32 +0000 |
commit | 844771f2a52adf177238d4215b7e76c4ae87778e (patch) | |
tree | 433dcf7f84866fc09fb54ee7d1be2c2887859460 /usr/local/www/guiconfig.inc | |
parent | 59031a493f0516015868caff866bc486414c8fff (diff) | |
download | pfsense-844771f2a52adf177238d4215b7e76c4ae87778e.zip pfsense-844771f2a52adf177238d4215b7e76c4ae87778e.tar.gz |
Add support for <exclude_dependency>.
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 88060e0..838f2eb 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -572,7 +572,7 @@ function read_body($ch, $string) { } function pkg_fetch_recursive($pkgname, $filename, $dependlevel = 0, $base_url = 'http://ftp2.freebsd.org/pub/FreeBSD/ports/i386/packages-5.4-release/Latest') { - global $static_status, $static_output, $g, $fd_log; + global $pkgent, $static_status, $static_output, $g, $fd_log; $pkg_extension = strrchr($filename, '.'); $static_output .= "\n" . str_repeat(" ", $dependlevel * 2) . $pkgname . " "; $fetchto = "/tmp/apkg_" . $pkgname . $pkg_extension; @@ -583,6 +583,8 @@ function pkg_fetch_recursive($pkgname, $filename, $dependlevel = 0, $base_url = $workingdir = $workingdir[0]; $raw_depends_list = array_values(preg_grep("/\@pkgdep/", $slaveout)); if($raw_depends_list != "") { + if($pkgent['exclude_dependency'] != "") + $raw_depends_list = array_values(preg_grep($pkent['exclude_dependency'], PREG_GREP_INVERT)); foreach($raw_depends_list as $adepend) { $working_depend = explode(" ", $adepend); //$working_depend = explode("-", $working_depend[1]); |