From: david-sarah Date: Wed, 10 Nov 2010 01:09:16 +0000 (-0800) Subject: tahoe_mv.py: when checking success of the DELETE operation, look at the status code... X-Git-Tag: allmydata-tahoe-1.8.1~19 X-Git-Url: https://git.rkrishnan.org/components/%22news.html/frontends/about.html?a=commitdiff_plain;h=38a0d3f5fa5a4d605cd3f58e7d8856cf558594b5;p=tahoe-lafs%2Ftahoe-lafs.git tahoe_mv.py: when checking success of the DELETE operation, look at the status code from DELETE rather than from the previous PUT. fixes #1255 --- diff --git a/src/allmydata/scripts/tahoe_mv.py b/src/allmydata/scripts/tahoe_mv.py index 08618cb1..cd54f7a7 100644 --- 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