summaryrefslogtreecommitdiff
path: root/scripts/feeds
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/feeds
parentad0865231856907fa36ea1a20f755e252e73e893 (diff)
downloadmtk-20170518-7e2fc318306af1639656b8d3fca1b1ce74a6d1f1.zip
mtk-20170518-7e2fc318306af1639656b8d3fca1b1ce74a6d1f1.tar.gz
mtk-20170518-7e2fc318306af1639656b8d3fca1b1ce74a6d1f1.tar.bz2
fix error message in scripts/feeds when indexes are missing
SVN-Revision: 10736
Diffstat (limited to 'scripts/feeds')
-rwxr-xr-xscripts/feeds8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/feeds b/scripts/feeds
index 186144e..afb8fff 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 };
}