projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdf6946
)
tahoe_mv.py: when checking success of the DELETE operation, look at the status code...
author
david-sarah
<david-sarah@jacaranda.org>
Wed, 10 Nov 2010 01:09:16 +0000
(17:09 -0800)
committer
david-sarah
<david-sarah@jacaranda.org>
Wed, 10 Nov 2010 01:09:16 +0000
(17:09 -0800)
src/allmydata/scripts/tahoe_mv.py
patch
|
blob
|
history
diff --git
a/src/allmydata/scripts/tahoe_mv.py
b/src/allmydata/scripts/tahoe_mv.py
index 08618cb1f6d6971ffcdc1dd5fbe5079e96074335..cd54f7a70978c9549ef03fb56fe50cb8520eb80a 100644
(file)
--- a/
src/allmydata/scripts/tahoe_mv.py
+++ b/
src/allmydata/scripts/tahoe_mv.py
@@
-66,7
+66,7
@@
def mv(options, mode="move"):
if mode == "move":
# now remove the original
resp = do_http("DELETE", from_url)
- if not re.search(r'^2\d\d$', str(status)):
+ if not re.search(r'^2\d\d$', str(
resp.
status)):
print >>stderr, format_http_error("Error deleting original after move", resp)
return 2