summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/tlpkg/TeXLive/TLCrypto.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/Master/tlpkg/TeXLive/TLCrypto.pm b/Master/tlpkg/TeXLive/TLCrypto.pm
index ac095bce5b5..ecfb7797dc7 100644
--- a/Master/tlpkg/TeXLive/TLCrypto.pm
+++ b/Master/tlpkg/TeXLive/TLCrypto.pm
@@ -310,6 +310,15 @@ sub setup_gpg {
my $gpghome_quote = "\"$gpghome\"";
# mind the final space for following args
$::gpg = "$prg --homedir $gpghome_quote ";
+ #
+ # check for additional keyrings in
+ # TEXMFSYSCONFIG/tlpkg/gpg/keyring.gpg
+ chomp (my $TEXMFSYSCONFIG = `kpsewhich -var-value=TEXMFSYSCONFIG`);
+ my $addkr = "$TEXMFSYSCONFIG/tlpkg/gpg/keyring.gpg";
+ if (-r $addkr) {
+ debug("setup_gpg: using additional keyring $addkr\n");
+ $::gpg .= "--keyring \"$addkr\" ";
+ }
if ($ENV{'TL_GNUPGARGS'}) {
$::gpg .= $ENV{'TL_GNUPGARGS'};
} else {