Backend imports should be made optional
Bug #394757 reported by
Kenneth Loafman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Certain backends require other modules, ncftp for FTP, sftp for SSH, etc.. If the user is not going to be using these modules, it should not be a requirement to have them on the system. I propose that we surround all backend imports with a try/except and that all modules should check requirements at import time prior to calling register_backend. If a backend fails to load, the default should be silence, however a verbosity of INFO or better should show why.
Changed in duplicity: | |
milestone: | 0.6.02 → none |
status: | Confirmed → In Progress |
Changed in duplicity: | |
importance: | Low → Medium |
milestone: | none → 0.6.03 |
Changed in duplicity: | |
status: | In Progress → Fix Committed |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
There should also be a 'duplicity list-backends' that will show available backends and their protocol strings, something like:
ftpbackend ftp://
sshbackend ssh:// scp://
...and so on...