diff options
author | Steven Barth <steven@midlink.org> | 2015-06-24 10:57:20 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-06-24 10:57:20 +0000 |
commit | 179dbdbd120cf7df48dfc3c6c485880636aa4fd9 (patch) | |
tree | 8776d381ebf6697eb620305f61f49f2f36a314fd /scripts/feeds | |
parent | 2ff9bd460d340b81095b8e6bebcf2669de885db8 (diff) | |
download | master-187ad058-179dbdbd120cf7df48dfc3c6c485880636aa4fd9.tar.gz master-187ad058-179dbdbd120cf7df48dfc3c6c485880636aa4fd9.tar.bz2 master-187ad058-179dbdbd120cf7df48dfc3c6c485880636aa4fd9.zip |
scripts/feeds: observe -p flag for preferential feeds
lookup_target was trampling the $feed variable, resulting in the -p flag
no longer preferentially installing from the named feed.
Make sure to use a local variable for this instead.
Signed-off-by: Karl Palsson <karlp@remake.is>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46120 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/feeds')
-rwxr-xr-x | scripts/feeds | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/feeds b/scripts/feeds index b6d2f45e72..f8f29cd9dd 100755 --- a/scripts/feeds +++ b/scripts/feeds @@ -450,10 +450,10 @@ sub install_package { my $force = shift; my $ret = 0; - $feed = lookup_target($feed, $name); - $feed and do { + my $this_feed_target = lookup_target($feed, $name); + $this_feed_target and do { $installed_targets{$name} and return 0; - install_target($feed, $name); + install_target($this_feed_target, $name); return 0; }; |