[tbb-commits] [tor-browser-build/master] Bug 40104: Use our TMPDIR when creating our .mar files

sysrqb at torproject.org sysrqb at torproject.org
Fri Oct 16 19:22:34 UTC 2020


commit db2bfade24a0e9518d768e7e84e22f9ae42e99f5
Author: Georg Koppen <gk at torproject.org>
Date:   Fri Oct 16 15:46:20 2020 +0000

    Bug 40104: Use our TMPDIR when creating our .mar files
---
 tools/dmg2mar                           | 1 +
 tools/update-responses/update_responses | 1 +
 2 files changed, 2 insertions(+)

diff --git a/tools/dmg2mar b/tools/dmg2mar
index 13a4c9e..54bb512 100755
--- a/tools/dmg2mar
+++ b/tools/dmg2mar
@@ -143,6 +143,7 @@ sub convert_files {
         unlink $output;
         local $ENV{MOZ_PRODUCT_VERSION} = $file->{version};
         local $ENV{MAR_CHANNEL_ID} = "torbrowser-torproject-$channel";
+        local $ENV{TMPDIR} = $tmpdir;
         (undef, $err, $success) =  capture_exec('make_full_update.sh', '-q',
                                         $output, "$tmpdir/$appname.app");
         exit_error "Error updating $output: $err" unless $success;
diff --git a/tools/update-responses/update_responses b/tools/update-responses/update_responses
index b07d937..de24235 100755
--- a/tools/update-responses/update_responses
+++ b/tools/update-responses/update_responses
@@ -232,6 +232,7 @@ sub create_incremental_mar {
     }
     local $ENV{MOZ_PRODUCT_VERSION} = $new_version;
     local $ENV{MAR_CHANNEL_ID} = "torbrowser-torproject-$channel";
+    local $ENV{TMPDIR} = $tmpdir;
     my ($out, $err, $success) = capture_exec('make_incremental_update.sh',
                                    $mar_file_path, "$tmpdir/A", "$tmpdir/B");
     if (!$success) {



More information about the tbb-commits mailing list