mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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/branches/chaos_calmer@46213 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
80f958c88d
commit
72cab74402
@ -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;
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user