diff options
author | Pascal Terjan <pterjan@mageia.org> | 2012-03-17 23:42:50 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2012-03-17 23:42:50 +0000 |
commit | d8130bde149ad6846f5829d8d733fc49d9690733 (patch) | |
tree | 27f2ab43c6c0239a187da8c033d7d338c322a9f6 | |
parent | ba9f0c8c2e70048f4eccbe69c23bf8a4056825d3 (diff) | |
download | iurt-d8130bde149ad6846f5829d8d733fc49d9690733.tar iurt-d8130bde149ad6846f5829d8d733fc49d9690733.tar.gz iurt-d8130bde149ad6846f5829d8d733fc49d9690733.tar.bz2 iurt-d8130bde149ad6846f5829d8d733fc49d9690733.tar.xz iurt-d8130bde149ad6846f5829d8d733fc49d9690733.zip |
Synthesis files with less than 1000 packages are valid
-rwxr-xr-x | iurt2 | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -494,10 +494,6 @@ my %config_usage = ( desc => 'Where the log can be seen', default => '' }, - minimum_package_number => { - "Minimum number of packages in a synthesis file to consider it valid", - default => 1000 - }, max_command_retry => { "Maximum number of retry Iurt will perform for a given command", default => 20 @@ -1298,7 +1294,6 @@ sub check_media { plog("Parsing $synthesis_file"); if (open my $syn, "zcat $synthesis_file |") { my @prov; - my $nb; local $_; while (<$syn>) { if (/^\@provides@(.*)/) { @@ -1309,7 +1304,6 @@ sub check_media { } } } elsif (/\@info\@([^@]+)@/) { - $nb++; my $p = $1; my ($name) = $p =~ /(.*)-[^-]+-[^-]+\./; $provides->{$p} = 1; @@ -1319,7 +1313,6 @@ sub check_media { @prov = (); } } - $nb < $config->{minimum_package_number} and die "FATAL $program_name: synthesis files seems corrupted, only $nb packages found."; } else { die "FATAL $program_name: Could not open $synthesis_file\n"; } |