diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2010-01-04 10:32:17 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2010-01-04 10:32:17 +0000 |
commit | 7d4fe4aa82dad1282f4c9cf5f644aa0b89866771 (patch) | |
tree | d759a4d148811050df805d49631df9209087423d | |
parent | f67bd829b0a1ece0e6a3cd14d39ed5c7e6169260 (diff) | |
download | iurt-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-x | iurt2 | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; |