chiark / gitweb /
jenkins-test: ensure gpg is starting from a clean and proper place
authorHans-Christoph Steiner <hans@eds.org>
Thu, 11 Jan 2018 19:55:36 +0000 (20:55 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Thu, 11 Jan 2018 20:27:33 +0000 (21:27 +0100)
There have been frequent failures on import, some bugs suggest that it
might be because these dirs are missing.  They would get wiped by a
`git clean -fdx`.

jenkins-test

index 245cbaa6cba499c3dcefdfa8e0e1040b8eaf56da..646b0a62006480341051569883110a53679061ae 100755 (executable)
@@ -38,6 +38,10 @@ rm -f config.py keystore.jks
 ../fdroid update
 
 export GNUPGHOME=$WORKSPACE/tests/gnupghome
+if [ ! -e $GNUPGHOME/private-keys-v1.d ]; then
+    mkdir -p $GNUPGHOME/private-keys-v1.d
+    chmod 0700 $GNUPGHOME/private-keys-v1.d
+fi
 gpg --import $GNUPGHOME/secring.gpg
 
 echo "build_server_always = True" >> config.py