X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/30d6c703dc7de9674b42414a61c64bda9ef4e691..6373194f3d114f059b9f0697a63bc8337eb4b09f:/scripts/feeds diff --git a/scripts/feeds b/scripts/feeds index f272e1309..43c5c6dc4 100755 --- a/scripts/feeds +++ b/scripts/feeds @@ -221,7 +221,7 @@ sub list_feed { my $feed = shift; get_feed($feed); - foreach my $name (sort { lc($a) cmp lc($b) } keys %package) { + foreach my $name (sort { lc($a) cmp lc($b) } keys %$feed_package) { my $pkg = $feed_package->{$name}; next if $pkg->{vdepends}; if($pkg->{name}) { @@ -397,11 +397,12 @@ sub install { if (!defined($opts{p}) or $opts{p} eq $f->[1]) { printf "Installing all packages from feed %s.\n", $f->[1]; get_feed($f->[1]); - foreach my $name (sort { lc($a) cmp lc($b) } keys %package) { + foreach my $name (sort { lc($a) cmp lc($b) } keys %$feed_package) { my $p = $feed_package->{$name}; next if $p->{vdepends}; if( $p->{name} ) { install_package($feed, $p->{name}) == 0 or $ret = 1; + get_feed($f->[1]); } } }