aboutsummaryrefslogtreecommitdiffstats
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
commitd6121b2ba6bf9625f2830f8a44fe3d4b639beb13 (patch)
tree1a55c826cbf3ce43591bfcfd250349ffc28544ce
parente515ca62c43b3687c06c1e6ad75056b9b13aadaf (diff)
downloadupstream-d6121b2ba6bf9625f2830f8a44fe3d4b639beb13.tar.gz
upstream-d6121b2ba6bf9625f2830f8a44fe3d4b639beb13.tar.bz2
upstream-d6121b2ba6bf9625f2830f8a44fe3d4b639beb13.zip
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
-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 };
}