From 7e2fc318306af1639656b8d3fca1b1ce74a6d1f1 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 5 Apr 2008 14:32:08 +0000 Subject: [PATCH] fix error message in scripts/feeds when indexes are missing SVN-Revision: 10736 --- scripts/feeds | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 }; } -- 2.30.2