Changeset 2b80754 in mod_gnutls for test/test_ca.mk


Ignore:
Timestamp:
May 27, 2016, 8:33:01 PM (3 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, upstream
Children:
086cea9
Parents:
9e56602
git-author:
Thomas Klute <thomas2.klute@…> (05/27/16 19:35:20)
git-committer:
Thomas Klute <thomas2.klute@…> (05/27/16 20:33:01)
Message:

Delete target files before exporting PGP certificates

GnuPG promts or (with --batch) fails if the target file exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test_ca.mk

    r9e56602 r2b80754  
    3535
    3636%/minimal.pgp: %/gpg.conf
     37        if test -r $@; then rm $@; fi
    3738        GNUPGHOME=$(dir $@) gpg --output $@ --armor --export "$$(GNUPGHOME=$(dir $@) gpg --with-colons --list-secret-keys --fingerprint | grep ^fpr: | cut -f 10 -d :)"
    3839
     
    4041# conditions with parallel make. Locking avoids this problem.
    4142%/cert.pgp: %/minimal.pgp authority/gpg.conf
     43        if test -r $@; then rm $@; fi
    4244        GNUPGHOME=authority $(GPG_FLOCK) gpg --import $<
    4345        GNUPGHOME=authority $(GPG_FLOCK) gpg --batch --sign-key --no-tty --yes "$$(GNUPGHOME=$(dir $@) gpg --with-colons --list-secret-keys --fingerprint | grep ^fpr: | cut -f 10 -d :)"
Note: See TracChangeset for help on using the changeset viewer.