aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2010-01-04 10:32:17 +0000
committerPascal Terjan <pterjan@mandriva.org>2010-01-04 10:32:17 +0000
commit7d4fe4aa82dad1282f4c9cf5f644aa0b89866771 (patch)
treed759a4d148811050df805d49631df9209087423d
parentf67bd829b0a1ece0e6a3cd14d39ed5c7e6169260 (diff)
downloadiurt-7d4fe4aa82dad1282f4c9cf5f644aa0b89866771.tar
iurt-7d4fe4aa82dad1282f4c9cf5f644aa0b89866771.tar.gz
iurt-7d4fe4aa82dad1282f4c9cf5f644aa0b89866771.tar.bz2
iurt-7d4fe4aa82dad1282f4c9cf5f644aa0b89866771.tar.xz
iurt-7d4fe4aa82dad1282f4c9cf5f644aa0b89866771.zip
Differentiate missing src.rpm from failure to rebuild it
-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;