diff options
author | Pascal Terjan <pterjan@mageia.org> | 2011-01-14 21:35:59 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2011-01-14 21:35:59 +0000 |
commit | ef36936da6f91e49f3c14cbadd2c625ffd513ca2 (patch) | |
tree | 63e6f670262a7008e974a1a06c7fcfad3557ba40 | |
parent | c4fc38e99a5bfb45421b3ab929eaf829585fd30e (diff) | |
download | iurt-ef36936da6f91e49f3c14cbadd2c625ffd513ca2.tar iurt-ef36936da6f91e49f3c14cbadd2c625ffd513ca2.tar.gz iurt-ef36936da6f91e49f3c14cbadd2c625ffd513ca2.tar.bz2 iurt-ef36936da6f91e49f3c14cbadd2c625ffd513ca2.tar.xz iurt-ef36936da6f91e49f3c14cbadd2c625ffd513ca2.zip |
Remove src.rpm from done in case of failure
-rwxr-xr-x | ulri | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -476,6 +476,12 @@ foreach my $prefix (keys %pkg_tree) { link $file, "$fail_dir/${prefix}_$srpm"; delete $pkg_tree{$prefix}; unlink $file; + # If one arch has been generated, we also have a src.rpm in done + $file = "$done_dir/${prefix}_$srpm"; + if (-f $file) { + plog('DEBUG', "deleting $file"); + unlink $file; + } } # Notify user if build failed |