mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
depot: delete signature file if signing failed
In cases where the signing failed (maybe the passphrase for the key was not available at this time), there remained an empty .sig file, which is newer than the to-be-signed file and, therefore, prevents subsequent signing processes.
This commit is contained in:
@@ -91,9 +91,9 @@ MISSING_PUBKEY_FILES := $(sort \
|
|||||||
$(DEPOT_DIR)/$(call pubkey_filename,$A))))
|
$(DEPOT_DIR)/$(call pubkey_filename,$A))))
|
||||||
|
|
||||||
$(PUBLIC_DIR)/%.xz.sig : $(PUBLIC_DIR)/%.xz
|
$(PUBLIC_DIR)/%.xz.sig : $(PUBLIC_DIR)/%.xz
|
||||||
$(VERBOSE)rm -f $@;
|
|
||||||
$(VERBOSE)$(GPG) --detach-sign --digest-algo SHA256 --no-tty --use-agent \
|
$(VERBOSE)$(GPG) --detach-sign --digest-algo SHA256 --no-tty --use-agent \
|
||||||
--local-user $(call pubkey_id,$*) - < $< > $@
|
--local-user $(call pubkey_id,$*) - < $< > $@ || \
|
||||||
|
( rm -f $@; false )
|
||||||
|
|
||||||
.PRECIOUS: $(TARGETS:.xz.sig=.xz)
|
.PRECIOUS: $(TARGETS:.xz.sig=.xz)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user