fix error message in scripts/feeds when indexes are missing
authorFelix Fietkau <nbd@openwrt.org>
Sat, 5 Apr 2008 14:32:08 +0000 (14:32 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 5 Apr 2008 14:32:08 +0000 (14:32 +0000)
SVN-Revision: 10736

scripts/feeds

index 186144ef38636649bb220fa06d983f89adf9e341..afb8fff298f83059ed8e89fd06c4900c5da75a4f 100755 (executable)
@@ -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 };
 }