From c136e175edae9febd66fcab92b5e84a3e1809169 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 30 Apr 2019 20:35:30 -0400 Subject: source.mk: Adjust cleanup logic --- 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) -- cgit v0.9.1