mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 17:43:09 +02:00
fix error message in scripts/feeds when indexes are missing
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10736 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e326121c96
commit
074c4146b6
@ -104,9 +104,15 @@ sub update_git($$) {
|
|||||||
|
|
||||||
sub get_feed($) {
|
sub get_feed($) {
|
||||||
my $feed = shift;
|
my $feed = shift;
|
||||||
|
my $file = "./feeds/$feed.index";
|
||||||
|
|
||||||
clear_packages();
|
clear_packages();
|
||||||
parse_package_metadata("./feeds/$feed.index") or return;
|
|
||||||
|
-f $file or do {
|
||||||
|
print "Ignoring feed '$feed' - index missing\n";
|
||||||
|
return;
|
||||||
|
};
|
||||||
|
parse_package_metadata($file) or return;
|
||||||
return { %package };
|
return { %package };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user