diff options
-rw-r--r-- | source.mk | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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) |