duplicity --short-filenames crashes with TypeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned | ||
Debian |
Fix Released
|
Unknown
|
|||
duplicity (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
ubuntu 10.04
duplicity version 0.6.08b from ubuntu 10.04
Python 2.6.5 from ubuntu 10.04
filesystem ext4
duplicity -v9 --short-filenames /usr/share/
Using temporary directory /tmp/duplicity-
Traceback (most recent call last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
action = commandline.
File "/usr/lib/
args = parse_cmdline_
File "/usr/lib/
(options, args) = parser.parse_args()
File "/usr/lib/
stop = self._process_
File "/usr/lib/
self.
File "/usr/lib/
option.
File "/usr/lib/
self.action, self.dest, opt, value, values, parser)
File "/usr/lib/
self, action, dest, opt, value, values, parser)
File "/usr/lib/
self.
File "/usr/lib/
callback=lambda o, s, v, p: (setattr(p.values, o.dest, True),
TypeError: attribute name must be string, not 'NoneType'
Changed in duplicity: | |
importance: | Undecided → Medium |
assignee: | nobody → Kenneth Loafman (kenneth-loafman) |
status: | Confirmed → In Progress |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
tags: | added: patch |
Changed in debian: | |
status: | Unknown → Confirmed |
Changed in debian: | |
status: | Confirmed → Fix Released |
I think the following patch may fix the parsing issue... but I'm not completely sure it's safe :-/
=== modified file 'duplicity/ commandline. py' commandline. py 2010-08-26 14:11:14 +0000 commandline. py 2010-09-05 14:55:07 +0000 add_option( "--sftp- command" , metavar= _("command" ))
--- duplicity/
+++ duplicity/
@@ -403,7 +403,7 @@
parser.
# If set, use short (< 30 char) filenames for all the remote files. add_option( "--short- filenames" , action="callback", add_option( "--short- filenames" , action="callback", dest="short_ filenames" ,
callback= lambda o, s, v, p: (setattr(p.values, o.dest, True),
old_ fn_deprecation( s)))
- parser.
+ parser.