[Mageia-sysadm] [304] Remove src.rpm from done in case of failure
root at mageia.org
root at mageia.org
Fri Jan 14 22:36:00 CET 2011
Revision: 304
Author: pterjan
Date: 2011-01-14 22:35:59 +0100 (Fri, 14 Jan 2011)
Log Message:
-----------
Remove src.rpm from done in case of failure
Modified Paths:
--------------
build_system/iurt/trunk/ulri
Modified: build_system/iurt/trunk/ulri
===================================================================
--- build_system/iurt/trunk/ulri 2011-01-14 16:59:36 UTC (rev 303)
+++ build_system/iurt/trunk/ulri 2011-01-14 21:35:59 UTC (rev 304)
@@ -476,6 +476,12 @@
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110114/1df278b9/attachment.html>
More information about the Mageia-sysadm
mailing list