aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2012-03-17 23:42:50 +0000
committerPascal Terjan <pterjan@mageia.org>2012-03-17 23:42:50 +0000
commitd8130bde149ad6846f5829d8d733fc49d9690733 (patch)
tree27f2ab43c6c0239a187da8c033d7d338c322a9f6 /iurt2
parentba9f0c8c2e70048f4eccbe69c23bf8a4056825d3 (diff)
downloadiurt-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
Diffstat (limited to 'iurt2')
-rwxr-xr-xiurt27
1 files changed, 0 insertions, 7 deletions
diff --git a/iurt2 b/iurt2
index 3aba9f0..91c3056 100755
--- a/iurt2
+++ b/iurt2
@@ -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";
}