Release process: keep temp directory (fix --no-cleanup) exim-4.95
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Tue, 28 Sep 2021 08:24:46 +0000 (10:24 +0200)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Tue, 28 Sep 2021 08:24:46 +0000 (10:24 +0200)
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