diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-04-05 14:32:08 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-04-05 14:32:08 +0000 |
commit | 074c4146b6cdac24db56c52b314753f9f7e52217 (patch) | |
tree | 1a55c826cbf3ce43591bfcfd250349ffc28544ce /scripts | |
parent | e326121c9610baedc4634b8a3dc2664c4d5b449b (diff) |
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
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/feeds | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/feeds b/scripts/feeds index 186144ef3..afb8fff29 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 }; } |