[Swift-commit] r7065 - trunk/libexec

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Thu Sep 12 20:48:14 CDT 2013


Author: hategan
Date: 2013-09-12 20:48:14 -0500 (Thu, 12 Sep 2013)
New Revision: 7065

Modified:
   trunk/libexec/swift-int-staging.k
Log:
honor sitedir.keep with provider staging

Modified: trunk/libexec/swift-int-staging.k
===================================================================
--- trunk/libexec/swift-int-staging.k	2013-09-12 19:30:12 UTC (rev 7064)
+++ trunk/libexec/swift-int-staging.k	2013-09-13 01:48:14 UTC (rev 7065)
@@ -17,6 +17,7 @@
 
 PIN := if(pinOption == "true", "pinned:", "")
 PROVENANCE_GRAPH_ENABLED := (configProperty("pgraph") != "false")
+CLEANUP_ENABLED := (configProperty("sitedir.keep") != "true")
 
 namespace(swift) {
 
@@ -137,8 +138,10 @@
 						stageOut("wrapper.error", "{stagingMethod}://localhost/{ddir}/{jobid}.error", 
 							mode = STAGING_MODE:IF_PRESENT)
 						appStageouts(jobid, stageout, stagingMethod)
-
-						task:cleanUp(".")
+						
+						if (CLEANUP_ENABLED) {
+							task:cleanUp(".")
+						}
 					)
 					
 					




More information about the Swift-commit mailing list