mirror of https://github.com/hak5/openwrt.git
scripts/feeds: switch to the right feed metadata when installing a package to fix dependency handling (patch by matthijs from #5891)
SVN-Revision: 22815lede-17.01
parent
f9ff9d02f6
commit
76d517b629
|
@ -307,6 +307,9 @@ sub install_package {
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# switch to the metadata for the selected feed
|
||||||
|
get_feed($feed->[1]);
|
||||||
|
|
||||||
my $pkg = $feed{$feed->[1]}->{$name} or return 1;
|
my $pkg = $feed{$feed->[1]}->{$name} or return 1;
|
||||||
$pkg->{name} or do {
|
$pkg->{name} or do {
|
||||||
$installed{$name} and return 0;
|
$installed{$name} and return 0;
|
||||||
|
@ -337,8 +340,8 @@ sub install_package {
|
||||||
return 1;
|
return 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
# install all dependencies
|
# install all dependencies referenced from the source package
|
||||||
foreach my $vpkg (@{$feed_src->{$src}}, $pkg) {
|
foreach my $vpkg (@{$feed_src->{$src}}) {
|
||||||
foreach my $dep (@{$vpkg->{depends}}, @{$vpkg->{builddepends}}, @{$vpkg->{"builddepends/host"}}) {
|
foreach my $dep (@{$vpkg->{depends}}, @{$vpkg->{builddepends}}, @{$vpkg->{"builddepends/host"}}) {
|
||||||
next if $dep =~ /@/;
|
next if $dep =~ /@/;
|
||||||
$dep =~ s/^\+//;
|
$dep =~ s/^\+//;
|
||||||
|
|
Loading…
Reference in New Issue