diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-07-15 23:36:02 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-07-15 23:36:02 +0000 |
commit | de2aa28c4cecf4d63c9ed5e057498bf2c046bb69 (patch) | |
tree | f67b95a6ce7eddee6f9fc83f29bdf1c047cdc828 /scripts/metadata.pl | |
parent | 7b16475eb7c316e9f23d21e572cf1f027e5af380 (diff) | |
download | mtk-20170518-de2aa28c4cecf4d63c9ed5e057498bf2c046bb69.zip mtk-20170518-de2aa28c4cecf4d63c9ed5e057498bf2c046bb69.tar.gz mtk-20170518-de2aa28c4cecf4d63c9ed5e057498bf2c046bb69.tar.bz2 |
properly support dependencies on packages that just use Build/DefaultTargets
SVN-Revision: 7983
Diffstat (limited to 'scripts/metadata.pl')
-rwxr-xr-x | scripts/metadata.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl index e8a7c1b..46f6644 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -4,6 +4,7 @@ my %preconfig; my %package; my %srcpackage; my %category; +my %subdir; sub get_multiline { my $prefix = shift; @@ -81,6 +82,7 @@ sub parse_package_metadata() { $subdir = $2; $src = $3; $subdir =~ s/^package\///; + $subdir{$src} = $subdir; $srcpackage{$src} = []; undef $pkg; }; @@ -518,14 +520,12 @@ sub gen_package_mk() { $dep =~ s/\+//; my $idx; my $pkg_dep = $package{$dep}; - $pkg_dep or $pkg_dep = $srcpackage{$dep}->[0]; - next unless defined $pkg_dep; next if defined $pkg_dep->{vdepends}; if (defined $pkg_dep->{src}) { ($pkg->{src} ne $pkg_dep->{src}) and $idx = $pkg_dep->{subdir}.$pkg_dep->{src}; - } elsif (defined($pkg_dep) && !defined($ENV{SDK})) { - $idx = $dep; + } elsif (defined($srcpackage{$dep})) { + $idx = $subdir{$dep}.$dep; } undef $idx if $idx =~ /^(kernel)|(base-files)$/; if ($idx) { |