From 7d4fe4aa82dad1282f4c9cf5f644aa0b89866771 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Mon, 4 Jan 2010 10:32:17 +0000 Subject: Differentiate missing src.rpm from failure to rebuild it --- iurt2 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'iurt2') diff --git a/iurt2 b/iurt2 index 637e342..a0f085b 100755 --- a/iurt2 +++ b/iurt2 @@ -847,6 +847,14 @@ do { if ($run{debug}) { $run{debug}++ == 2 and exit() } $done++; plog('NOTIFY', "Build package $srpm [$done/$to_compile]"); + # When rebuilding all the media, src.rpm can be removed from mirror before we work on them + unless (-f "$dir/$srpm") { + $cache->{failure}{$srpm} = 1; + $run{status}{$srpm} = 'missing'; + dump_cache_par(\%run); + dump_status($local_spool, \%run); + next; + } # FIXME unfortunately urpmi stalls quite often my $retry = 0; -- cgit v1.2.1