Skip to content

Commit

Permalink
Revert "scripts/package-metadata.pl: fix handling transitive conditio…
Browse files Browse the repository at this point in the history
…nal dependencies"

This reverts commit 6c3eff9.
This appears to cause some regressions in generated config.
Will be replaced with a fixed version later

Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
nbd168 committed Sep 1, 2023
1 parent 33303b5 commit 6252c18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/package-metadata.pl
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ sub mconf_depends {
my $condition = $parent_condition;

next if $condition eq $depend;
next if $seen->{"$parent_condition:$depend"};
next if $seen->{":$depend"};
$seen->{"$parent_condition:$depend"} = 1;
if ($depend =~ /^(.+):(.+)$/) {
if ($1 ne "PACKAGE_$pkgname") {
if ($condition) {
Expand All @@ -171,9 +174,6 @@ sub mconf_depends {
}
$depend = $2;
}
next if $seen->{"$parent_condition:$depend"};
next if $seen->{":$depend"};
$seen->{"$parent_condition:$depend"} = 1;
if ($flags =~ /\+/) {
my $vdep = $vpackage{$depend};
if ($vdep) {
Expand Down

0 comments on commit 6252c18

Please sign in to comment.