]> git.lyx.org Git - features.git/commitdiff
lyx-build: check sig in case one really uses download instead of local tarball.
authorPavel Sanda <sanda@lyx.org>
Tue, 19 Jun 2018 21:53:36 +0000 (23:53 +0200)
committerPavel Sanda <sanda@lyx.org>
Tue, 19 Jun 2018 21:58:19 +0000 (23:58 +0200)
development/tools/lyx-build

index 27b72d5b6bdc4bf0bd727a928e6937e627db1478..644cf104644b556f95f99b9ca4589fde71cfe659 100755 (executable)
@@ -97,6 +97,13 @@ if [ ! -d $BASE/lyx-patch/lyx-$LAST ]; then
     echo "Will try to download from LyX site....";
     pushd $BASE/lyx-patch/;
     wget ftp://ftp.lyx.org/pub/lyx/stable/${FIRST}x/lyx-$LAST.tar.gz;
+    wget ftp://ftp.lyx.org/pub/lyx/stable/${FIRST}x/lyx-$LAST.tar.gz.sig
+    gpg -q --verify lyx-$LAST.tar.gz.sig
+    if ! [ $? == 0 ]; then
+      echo "Signature wrong!"
+      exit 1;
+    fi
+    rm lyx-$LAST.tar.gz.sig
     tar -zxvf lyx-$LAST.tar.gz;
     if [ ! -f lyx-$LAST.tar.gz ]; then
       echo "Still unable to find directory for last version $LAST.";