aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-04-05 14:32:08 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-04-05 14:32:08 +0000
commit7e2fc318306af1639656b8d3fca1b1ce74a6d1f1 (patch)
tree096c0d677271bf2647ba6a69e8e414c7d3a224c0 /scripts
parentad0865231856907fa36ea1a20f755e252e73e893 (diff)
downloadupstream-7e2fc318306af1639656b8d3fca1b1ce74a6d1f1.tar.gz
upstream-7e2fc318306af1639656b8d3fca1b1ce74a6d1f1.tar.bz2
upstream-7e2fc318306af1639656b8d3fca1b1ce74a6d1f1.zip
fix error message in scripts/feeds when indexes are missing
SVN-Revision: 10736
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/feeds8
1 files changed, 7 insertions, 1 deletions
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 };
}