diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-03-27 09:51:11 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-03-27 09:51:11 +0000 |
commit | 3b2e8a7328f00b217c72a5e479b50ebc0ab507d9 (patch) | |
tree | a9001479cb9366f0021cee53126cc99418437041 /yarns/9000-implements.yarn | |
parent | 03838fd2c82a1705de26f4396eee774c9d46b5b7 (diff) | |
download | obnam-3b2e8a7328f00b217c72a5e479b50ebc0ab507d9.tar.gz |
Separate adding to share and owner steps
Diffstat (limited to 'yarns/9000-implements.yarn')
-rw-r--r-- | yarns/9000-implements.yarn | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/yarns/9000-implements.yarn b/yarns/9000-implements.yarn index 108795fc..364c6bb9 100644 --- a/yarns/9000-implements.yarn +++ b/yarns/9000-implements.yarn @@ -397,9 +397,16 @@ Import a key into one user's keyring from another keyring. GNUPGHOME="$SRCDIR/$MATCH_3" gpg --export --armor "$MATCH_2" | GNUPGHOME="$DATADIR/$MATCH_1.gnupg" gpg --import -Add a public key to a repository. +Add a public key to a repository, but not to the calling user, only to +the shared parts. - IMPLEMENTS WHEN user (\S+) adds key "(.+)" to repository (\S+) + IMPLEMENTS WHEN user (\S+) adds key "(.+)" to repository (\S+) only + run_obnam "$MATCH_1" -r "$DATADIR/$MATCH_3" \ + add-key --keyid "$MATCH_2" + +Add a public key to a repository, and the calling user. + + IMPLEMENTS WHEN user (\S+) adds key "(.+)" to repository (\S+) and self run_obnam "$MATCH_1" -r "$DATADIR/$MATCH_3" \ add-key --keyid "$MATCH_2" "$MATCH_1" |