fix error message in scripts/feeds when indexes are missing
SVN-Revision: 10736
This commit is contained in:
parent
ad08652318
commit
7e2fc31830
1 changed files with 7 additions and 1 deletions
|
@ -104,9 +104,15 @@ sub update_git($$) {
|
||||||
|
|
||||||
sub get_feed($) {
|
sub get_feed($) {
|
||||||
my $feed = shift;
|
my $feed = shift;
|
||||||
|
my $file = "./feeds/$feed.index";
|
||||||
|
|
||||||
clear_packages();
|
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 };
|
return { %package };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue