aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2011-01-14 21:35:59 +0000
committerPascal Terjan <pterjan@mageia.org>2011-01-14 21:35:59 +0000
commitef36936da6f91e49f3c14cbadd2c625ffd513ca2 (patch)
tree63e6f670262a7008e974a1a06c7fcfad3557ba40
parentc4fc38e99a5bfb45421b3ab929eaf829585fd30e (diff)
downloadiurt-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-xulri6
1 files changed, 6 insertions, 0 deletions
diff --git a/ulri b/ulri
index 30fd98d..bf59d3d 100755
--- a/ulri
+++ b/ulri
@@ -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