summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/source.mk b/source.mk
index 8795d1e..ee7edc4 100644
--- a/source.mk
+++ b/source.mk
@@ -13,8 +13,11 @@ $(source_archive):
$(gpg) --keyserver hkp://pool.sks-keyservers.net \
--recv-keys $(keys); \
rm -f ../keyring.gpg~; \
- $(gpg) --verify '$(upstream_archive).sig' && \
- mv '$(upstream_archive)' '$(source_archive)'
+ if ! $(gpg) --verify '$(upstream_archive).sig'; then \
+ rm -Rf gnupghome/; \
+ exit 1; \
+ fi
rm -Rf gnupghome/
+ mv '$(upstream_archive)' '$(source_archive)'
source: $(source_archive)