aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2017-10-03 19:13:31 +0100
committerPascal Terjan <pterjan@mageia.org>2017-10-03 21:05:27 +0100
commit227a7b4f441a4d174b8862a7ab43b469f0ab7f64 (patch)
tree5bd6fe724e59b700f321ed01b07cec070d64ace1
parent2d4e55f7aa8d46aa2d181e8a352c02be22e79f80 (diff)
downloadiurt-227a7b4f441a4d174b8862a7ab43b469f0ab7f64.tar
iurt-227a7b4f441a4d174b8862a7ab43b469f0ab7f64.tar.gz
iurt-227a7b4f441a4d174b8862a7ab43b469f0ab7f64.tar.bz2
iurt-227a7b4f441a4d174b8862a7ab43b469f0ab7f64.tar.xz
iurt-227a7b4f441a4d174b8862a7ab43b469f0ab7f64.zip
Do not read all rpms in check_media, synthesis can be trusted
-rwxr-xr-xiurt18
1 files changed, 0 insertions, 18 deletions
diff --git a/iurt b/iurt
index 74bfb29..268af74 100755
--- a/iurt
+++ b/iurt
@@ -1106,24 +1106,6 @@ sub check_pid {
sub check_media {
my ($run, $cache, $config, $srpm_version, $provides, $pack_provide, $maint) = @_;
-# We could rely only on parsing the synthesis, hoping that they are correct, however this scan is very fast, so...
- if (!$run->{build_all}) {
- foreach my $subdir (@{$config->{all_media}{$run->{media}}}) {
- my $rpms_dir = "$config->{repository}/$run->{distro}/$run->{my_arch}/media/$run->{media}/$subdir/";
- plog("checking current packages in $rpms_dir");
- opendir my $rpmdir, $rpms_dir or die "Could not open $rpms_dir: $!";
- my $urpmi = $run->{urpmi};
- foreach my $rpm (readdir $rpmdir) {
- my ($rarch, $srpm) = $urpmi->update_srpm($rpms_dir, $rpm);
- $rarch or next;
- $cache->{queue}{$srpm} = 1;
- $run{status}{$srpm} = 'ok';
- check_version($run, $srpm, $srpm_version);
- }
- closedir $rpmdir;
- }
- }
-
foreach my $m (keys %{$config->{all_media}}) {
foreach my $subdir (@{$config->{all_media}{$m}}) {
my $synthesis_file = "$config->{repository}/$run->{distro}/$run->{my_arch}/media/$m/$subdir/media_info/synthesis.hdlist.cz";