[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser-build/master] projects/release: reset HOME for gpg



commit 5f85afd771daaf9e1f6f1f8797188b5523839a1e
Author: Nicolas Vigier <boklm@xxxxxxxxxxxxxx>
Date:   Wed May 17 20:53:42 2017 +0200

    projects/release: reset HOME for gpg
    
    If HOME is set to a temporary directory, $HOME/.gnupg cannot be used to
    sign the build.
---
 projects/release/config | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/projects/release/config b/projects/release/config
index f6712c0..3351959 100644
--- a/projects/release/config
+++ b/projects/release/config
@@ -120,6 +120,8 @@ input_files:
 build: |
   #!/bin/sh
   [% c("var/set_default_env") -%]
+  # reset HOME which was changed by var/set_default_env, for gpg
+  [% IF ENV.HOME %]export HOME="[% ENV.HOME %]"[% END %]
   destdir="[% dest_dir _ '/' _ c("var/publish_dir") %]"
   mkdir -p "$destdir"
   [% IF c("var/torbrowser-windows-i686") -%]



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits