par2backend.py incorrect syntax in get()

Bug #1437789 reported by pdf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned

Bug Description

Attempting to resume a failed backup using 0.7.02-0ubuntu0ppa1080~ubuntu14.10.1, I encountered the following stack trace:

Backtrace of previous error: Traceback (innermost last):
  File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 365, in inner_retry
    return fn(self, *args)
  File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 538, in get
    self.backend._get(remote_filename, local_path)
  File "/usr/lib/python2.7/dist-packages/duplicity/backends/par2backend.py", line 120, in get
    par2volumes = filter(re.compile((r'%s\.vol[\d+]*\.par2' % remote_filename).match,
 AttributeError: 'str' object has no attribute 'match'

Attempt 1 failed. AttributeError: 'str' object has no attribute 'match'

It looks like Revision 978.2.2 introduced this error by adding some extraneous brackets. The attached patch appears to resolve the problem here, but I don't write Python, so probably needs at least a desk-check.

Revision history for this message
pdf (pdffs) wrote :
Changed in duplicity:
importance: Undecided → Medium
milestone: none → 0.7.03
status: New → Fix Committed
Changed in duplicity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.