fix missing package compile/installation issue
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 11 Jun 2008 18:48:37 +0000 (18:48 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 11 Jun 2008 18:48:37 +0000 (18:48 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11441 3c298f89-4303-0410-b956-a3cf2f4a3e73

scripts/metadata.pl

index bd1a40a..007b63e 100755 (executable)
@@ -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) {
This page took 0.02829 seconds and 4 git commands to generate.