From 3e4a0a47addf2f3f56f3a0929dff5cc734dadfaa Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 21 Apr 2016 03:04:00 +0000 Subject: setup_gpg: search for tlgpg for all archs git-svn-id: svn://tug.org/texlive/trunk@40647 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/TeXLive/TLUtils.pm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Master') diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm index 9eb2c89be25..d5955f1d069 100644 --- a/Master/tlpkg/TeXLive/TLUtils.pm +++ b/Master/tlpkg/TeXLive/TLUtils.pm @@ -3700,10 +3700,13 @@ sub setup_gpg { $prg = test_one_gpg('gpg2'); $found = 1 if ($prg); } - if (!$found && $^O =~ /^MSWin/i) { - # test on windows also a shipped version from texlive.gpg.win32 - if (-r "$master/tlpkg/installer/gpg/gpg.exe") { - $prg = "$master/tlpkg/installer/gpg/gpg.exe"; + if (!$found) { + # test also a shipped version from tlgpg + my $p = "$master/tlpkg/installer/gpg/gpg." . + ($^O =~ /^MSWin/i ? "exe" : platform()) ; + debug("Testing for gpg in $p\n"); + if (-r $p) { + $prg = $p; $found = 1; } } -- cgit v1.2.3