Merge lp:~mterry/duplicity/u1-402 into lp:duplicity/0.6

Proposed by Michael Terry
Status: Merged
Merge reported by: Kenneth Loafman
Merged at revision: not available
Proposed branch: lp:~mterry/duplicity/u1-402
Merge into: lp:duplicity/0.6
Diff against target: 17 lines (+3/-3)
1 file modified
duplicity/backends/u1backend.py (+3/-3)
To merge this branch: bzr merge lp:~mterry/duplicity/u1-402
Reviewer Review Type Date Requested Status
duplicity-team Pending
Review via email: mp+131447@code.launchpad.net

Description of the change

Switch the code we check for out-of-space in u1backend.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'duplicity/backends/u1backend.py'
2--- duplicity/backends/u1backend.py 2012-10-17 11:45:25 +0000
3+++ duplicity/backends/u1backend.py 2012-10-25 16:21:19 +0000
4@@ -91,10 +91,10 @@
5 return resp, content
6
7 ecode = log.ErrorCode.backend_error
8- if numcode == 404:
9+ if numcode == 402: # Payment Required
10+ ecode = log.ErrorCode.backend_no_space
11+ elif numcode == 404:
12 ecode = log.ErrorCode.backend_not_found
13- elif numcode == 507: # webdav no space
14- ecode = log.ErrorCode.backend_no_space
15
16 if n >= globals.num_retries + 1:
17 log.FatalError("Giving up on request after %d attempts, last status %d %s" % (n, numcode.resp.reason), ecode)

Subscribers

People subscribed via source and target branches

to all changes: