1150
|
|
GPG: enable truly non-interactive operation with gpg2
GPG always tries to grab a passphrase from the gpg agent, even if is run with "--batch --no-tty" (as enforced by the meta_interactive = 0 setting of gpginterface.py).
Sometimes this behavior is not intended. I would like to be able to run a backup job truly interactively. This would be possible, but duplicity's check_manifests() function calls gpg to compare the remote (encrypted) and local manifest, which, with gpg2, will pop up the gpg agent pinentry every time I try to save backup (with gpg1, duplicity will just give up on the verification).
I found that it's possible to force gpg2 to behave like gpg1 by using the command line option "--pinentry-mode=cancel". My patch applies this option if duplicity's "--use-agent" option is unset.
Now, even with gpg2, backups can be saved without any passphrase dialog, at the cost of not being able to verify the manifests. Users who want the verification would just need to use "--use-agent", as with gpg1.
For restore, this change has no effect, as duplicity will ask for the passphrase anyway if "--use-agent" is not specirfied.
|
Martin Wilck |
7 years ago
|
|
|
1149
|
|
|
Kenneth Loafman |
7 years ago
|
|
|
1148
|
|
|
Kenneth Loafman |
7 years ago
|
|
|
1147
|
|
|
Kenneth Loafman |
7 years ago
|
|
|
1146
|
|
|
ken |
7 years ago
|
|
|
1145
|
|
|
ken |
7 years ago
|
|
|
1144
|
|
|
ken |
7 years ago
|
|
|
1143
|
|
|
ken |
7 years ago
|
|
|
1142
|
|
|
ken |
7 years ago
|
|
|
1141
|
|
|
ken |
7 years ago
|
|
|
1140
|
|
|
ken |
7 years ago
|
|
|
1139
|
|
|
ken |
7 years ago
|
|
|
1138
|
|
|
ken |
7 years ago
|
|
|
1137
|
|
|
ken |
7 years ago
|
|
|
1136
|
|
|
ken |
7 years ago
|
|
|
1135
|
|
|
ken |
7 years ago
|
|
|
1134
|
|
|
ken |
7 years ago
|
|
|
1133
|
|
|
ken |
7 years ago
|
|
|
1132
|
|
|
ken |
7 years ago
|
|
|
1131
|
|
|
ken |
7 years ago
|
|
|