From: Felix Fietkau Date: Sat, 5 Apr 2008 14:32:08 +0000 (+0000) Subject: fix error message in scripts/feeds when indexes are missing X-Git-Tag: reboot~26838 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7e2fc318306af1639656b8d3fca1b1ce74a6d1f1;p=oweals%2Fopenwrt.git fix error message in scripts/feeds when indexes are missing SVN-Revision: 10736 --- diff --git a/scripts/feeds b/scripts/feeds index 186144ef38..afb8fff298 100755 --- a/scripts/feeds +++ b/scripts/feeds @@ -104,9 +104,15 @@ sub update_git($$) { sub get_feed($) { my $feed = shift; + my $file = "./feeds/$feed.index"; 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 }; }