summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorViktor Szakats <vszakats@users.noreply.github.com>2017-03-13 08:56:20 (GMT)
committerViktor Szakats <vszakats@users.noreply.github.com>2017-03-14 16:08:00 (GMT)
commitd37b0deb49239b9f9a3489c3d86506c34586b587 (patch)
tree236144ee21260bebca54e4b5e27fb84f2c1dbedb /tools
parentdb4ce95e85ea9f5c581bc308bced5256471bc723 (diff)
downloadmxe-d37b0deb49239b9f9a3489c3d86506c34586b587.zip
mxe-d37b0deb49239b9f9a3489c3d86506c34586b587.tar.gz
mxe-d37b0deb49239b9f9a3489c3d86506c34586b587.tar.bz2
use curl+gpg instead of relying on gpg's curling capabilities
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mxe-get10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/mxe-get b/tools/mxe-get
index 104f51c..11bccd4 100755
--- a/tools/mxe-get
+++ b/tools/mxe-get
@@ -20,7 +20,7 @@ MXE_DONT_INSTALL Comma/space separated list of package names to skip
*-linux-gnu-*, mxe-requirements, mxe-source packages
are excluded automatically.
-Required: ar (BSD), gpg (2.x), curl, openssl, awk, sed, tar, gzip
+Required: ar (BSD), gpg, curl, openssl, awk, sed, tar, gzip
Author: Viktor Szakats <https://vszakats.net/>"
}
@@ -106,8 +106,8 @@ mkdir -p "${MXE_HOME}"
(
cd "${MXE_HOME}" || exit
- # APT root
- base='http://pkg.mxe.cc/repos/apt/debian'
+ base='http://pkg.mxe.cc/repos/apt/debian' # APT root
+ suid='D43A795B73B16ABE9643FE1AFD8FFF16DB45C6AB' # Signer UID
alias gpg='gpg --batch --keyserver-options timeout=15 --keyid-format LONG'
@@ -115,7 +115,9 @@ mkdir -p "${MXE_HOME}"
mxe_curl \
-O "${base}/dists/wheezy/Release.gpg" \
-O "${base}/dists/wheezy/Release"
- gpg -q --keyserver hkps://keyserver.ubuntu.com --recv-keys 'D43A795B73B16ABE9643FE1AFD8FFF16DB45C6AB'
+ mxe_curl \
+ "https://keyserver.ubuntu.com/pks/lookup?search=0x${suid}&op=get" \
+ | gpg --import --status-fd 1
gpg --verify-options show-primary-uid-only --verify Release.gpg Release || exit 1
mxe_curl \
-O "${base}/dists/wheezy/main/binary-amd64/Packages.gz"