scripts/feeds: fix installing targets without explicitly specifying the feed
[openwrt/openwrt.git] / 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];