build-metapackages.sh: Try GPG twice
authorJason Self <j@jxself.org>
Sun, 4 Sep 2022 21:32:46 +0000 (14:32 -0700)
committerJason Self <j@jxself.org>
Sun, 4 Sep 2022 21:32:46 +0000 (14:32 -0700)
This is a workaround for GPG returning a non-zero exit status when
importing lxo's key, due to signatures being missing, even though the
key is actually imported.

metapackages/build-metapackages.sh

index e2a0078ca2b07cff80ecc5c455959001bd197d19..e0e9dfacd5c4f22cb7fd8d253d14dbe9818061e6 100755 (executable)
@@ -17,8 +17,7 @@ do
     :
     for keyfile in keys/*.asc
     do
-        rm -f $package/usr/share/keyrings/$package.gpg
-        gpg --verbose --no-default-keyring --keyring $package/usr/share/keyrings/$package.gpg --import $keyfile || true
+        gpg --verbose --no-default-keyring --keyring $package/usr/share/keyrings/$package.gpg --import $keyfile || gpg --no-default-keyring --keyring $package/usr/share/keyrings/$package.gpg --import $keyfile
     done
     dpkg-deb --root-owner-group -b $package
 done
\ No newline at end of file