aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-06-11 18:48:37 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-06-11 18:48:37 +0000
commitab504da309f1282bea2bf76b23c2fa8173b17ae3 (patch)
treeb732c5f676cc15629c81a26384ac077fdbbab28a
parent23d1a5bd882e21538fdacdc8e2a3f7974b90c639 (diff)
downloadupstream-ab504da309f1282bea2bf76b23c2fa8173b17ae3.tar.gz
upstream-ab504da309f1282bea2bf76b23c2fa8173b17ae3.tar.bz2
upstream-ab504da309f1282bea2bf76b23c2fa8173b17ae3.zip
fix missing package compile/installation issue
SVN-Revision: 11441
-rwxr-xr-xscripts/metadata.pl23
1 files changed, 12 insertions, 11 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index bd1a40a533..007b63ed9f 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -505,17 +505,6 @@ sub gen_package_mk() {
my @srcdeps;
next if defined $pkg->{vdepends};
- next if $done{$pkg->{src}};
- $done{$pkg->{src}} = 1;
-
- foreach my $spkg (@{$srcpackage{$pkg->{src}}}) {
- foreach my $dep (@{$spkg->{depends}}, @{$spkg->{builddepends}}) {
- $dep =~ /@/ or do {
- $dep =~ s/\+//g;
- push @srcdeps, $dep;
- };
- }
- }
if ($ENV{SDK}) {
$conf{$pkg->{src}} or do {
@@ -530,6 +519,18 @@ sub gen_package_mk() {
$pkg->{prereq} and print "prereq-$config += $pkg->{subdir}$pkg->{src}\n";
}
+ next if $done{$pkg->{src}};
+ $done{$pkg->{src}} = 1;
+
+ foreach my $spkg (@{$srcpackage{$pkg->{src}}}) {
+ foreach my $dep (@{$spkg->{depends}}, @{$spkg->{builddepends}}) {
+ $dep =~ /@/ or do {
+ $dep =~ s/\+//g;
+ push @srcdeps, $dep;
+ };
+ }
+ }
+
my $hasdeps = 0;
my $depline = "";
foreach my $deps (@srcdeps) {