scripts/feeds: fix installing targets without explicitly specifying the feed
authorFelix Fietkau <nbd@nbd.name>
Mon, 24 Jan 2022 12:16:00 +0000 (13:16 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 24 Jan 2022 12:29:05 +0000 (13:29 +0100)
Add similar code to what is done on packages

Signed-off-by: Felix Fietkau <nbd@nbd.name>
scripts/feeds

index f63b4f0951b9c97a32747eb6bd82833cd43652d5..7392ddf94426db482bfc7a1e2ce91283f0076ddf 100755 (executable)
@@ -499,6 +499,8 @@ sub install_target {
        my $feed = shift;
        my $name = shift;
 
+       $feed = lookup_target($feed, $name);
+
        $installed_targets{$name} and return 0;
 
        $feed = $feed_cache{$feed->[1]}->[2];