Fix 'list-current-files' with missing archive dir
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned |
Bug Description
When running 'list-current-
Steps to reproduce;
$ mkdir source
$ touch source/test
$ duplicity source backup
$ mkdir cache
$ duplicity list-current-files --archive-dir ./cache backup
===== Begin GnuPG log =====
gpg: CAST5 encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: bad key
===== End GnuPG log ====
This is because there is an 'early out' in the password handling that checks to see if we are running 'list-current-
The attached patch moves the password querying to separate module which only asks the user for the password when it is required. As the signature file class correctly falls back to the backend when the files aren't available in the cache, this fixes the bug (as well as removes a bunch of special case checks for when the password needs to be read).
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
Changed in duplicity: | |
assignee: | Kenneth Loafman (kenneth-loafman) → nobody |
status: | Confirmed → Fix Committed |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
This was fixed in 0.6.1 with the addition of automatic archive sync at startup.