diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-06-11 18:48:37 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-06-11 18:48:37 +0000 |
commit | c857936b93d89023c86c7cbf84b279c9fa9b382c (patch) | |
tree | 94b8e937eb58d0b5e364f563bfd72bee5c06d667 /scripts | |
parent | af60e16a61a22b9e5e72bd015995b484e5075390 (diff) | |
download | master-187ad058-c857936b93d89023c86c7cbf84b279c9fa9b382c.tar.gz master-187ad058-c857936b93d89023c86c7cbf84b279c9fa9b382c.tar.bz2 master-187ad058-c857936b93d89023c86c7cbf84b279c9fa9b382c.zip |
fix missing package compile/installation issue
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11441 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/metadata.pl | 23 |
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) { |