projects
/
openwrt
/
staging
/
ynezz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfaeab1
)
scripts/metadata.pl: fix handling of multiple conditional depends on the same package
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 9 Mar 2010 15:51:40 +0000
(15:51 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Tue, 9 Mar 2010 15:51:40 +0000
(15:51 +0000)
SVN-Revision: 20085
scripts/metadata.pl
patch
|
blob
|
history
diff --git
a/scripts/metadata.pl
b/scripts/metadata.pl
index c963964ba3ad8e7d781b3f17cb995a6fd518c5ff..70d1b40255847328d14a607ee767a82fcd41c3a7 100755
(executable)
--- a/
scripts/metadata.pl
+++ b/
scripts/metadata.pl
@@
-423,6
+423,8
@@
sub mconf_depends {
my $vdep;
my $condition = $parent_condition;
+ next if $seen->{$depend};
+ $seen->{$depend} = 1;
if ($depend =~ /^(.+):(.+)$/) {
if ($1 ne "PACKAGE_$pkgname") {
if ($condition) {
@@
-433,9
+435,7
@@
sub mconf_depends {
}
$depend = $2;
}
- next if $seen->{$depend};
next if $package{$depend} and $package{$depend}->{buildonly};
- $seen->{$depend} = 1;
if ($vdep = $package{$depend}->{vdepends}) {
$depend = join("||", map { "PACKAGE_".$_ } @$vdep);
} else {