aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2
diff options
context:
space:
mode:
Diffstat (limited to 'iurt2')
-rwxr-xr-xiurt28
1 files changed, 8 insertions, 0 deletions
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;