[exim-cvs] Release process: keep temp directory (fix --no-cl…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Git Commits Mailing List
Datum:  
To: exim-cvs
Betreff: [exim-cvs] Release process: keep temp directory (fix --no-cleanup)
Gitweb: https://git.exim.org/exim.git/commitdiff/fb62e7a12be6593a5432fba4a9e4468c34feef5c
Commit:     fb62e7a12be6593a5432fba4a9e4468c34feef5c
Parent:     4449d1067062efa0f3d88e801660e5aadbdeabb2
Author:     Heiko Schlittermann (HS12-RIPE) <hs@???>
AuthorDate: Tue Sep 28 10:24:46 2021 +0200
Committer:  Heiko Schlittermann (HS12-RIPE) <hs@???>
CommitDate: Tue Sep 28 10:24:46 2021 +0200


    Release process: keep temp directory (fix --no-cleanup)
---
 release-process/scripts/mk_exim_release | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


diff --git a/release-process/scripts/mk_exim_release b/release-process/scripts/mk_exim_release
index a4111e5..71a39c9 100755
--- a/release-process/scripts/mk_exim_release
+++ b/release-process/scripts/mk_exim_release
@@ -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