summaryrefslogtreecommitdiff
path: root/source/d/rust/rust.url
diff options
context:
space:
mode:
Diffstat (limited to 'source/d/rust/rust.url')
-rw-r--r--source/d/rust/rust.url17
1 files changed, 13 insertions, 4 deletions
diff --git a/source/d/rust/rust.url b/source/d/rust/rust.url
index 4221f0e8..4ef81634 100644
--- a/source/d/rust/rust.url
+++ b/source/d/rust/rust.url
@@ -1,7 +1,16 @@
-# Source code (repacked to .tar.xz):
-lftpget https://static.rust-lang.org/dist/rustc-1.45.2-src.tar.gz
-gzip -d rustc-*tar.gz
-plzip -9 -v rustc-*tar
+# Source code (repacked to .tar.lz):
+VERSION=1.45.2
+rm -f rustc-${VERSION}-src.tar.*
+lftpget https://static.rust-lang.org/dist/rustc-${VERSION}-src.tar.gz
+lftpget https://static.rust-lang.org/dist/rustc-${VERSION}-src.tar.gz.asc
+if gpg --verify rustc-${VERSION}-src.tar.gz.asc ; then
+ rm -f rustc-${VERSION}-src.tar.gz.asc
+ gzip -d rustc-*tar.gz
+ plzip -9 -v rustc-*tar
+else
+ echo "FATAL ERROR: Not recompressing since GPG signature failed."
+ exit 1
+fi
# Please note that the bootstrap binary packages listed below might not be kept
# updated for later versions. The Rust compiler as shipped with Slackware