Release process: keep temp directory (fix --no-cleanup)
[exim.git] / release-process / scripts / mk_exim_release
index a4111e5664fc1f0716c36f356e1dcb447b717d53..71a39c92bf1a229ac7e0f76817f90fc5e7065685 100755 (executable)
@@ -162,7 +162,9 @@ package Context {
         my $workspace = $context->{workspace};
 
         if (not defined $workspace) {
-            $workspace = $context->{workspace} = File::Temp->newdir(File::Spec->tmpdir . '/exim-packaging-XXXX');
+            $workspace = $context->{workspace} = File::Temp->newdir(
+                TEMPLATE => File::Spec->tmpdir . '/exim-packaging-XXXX',
+                CLEANUP  => $context->{cleanup});
         }
         else {
             # ensure the working directory is not in place