From: Zooko O'Whielacronx Date: Fri, 17 Aug 2007 21:17:31 +0000 (-0700) Subject: command-line: fix a few bugs in the "execute this python file" way to execute rm X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer/about.html?a=commitdiff_plain;h=594912e334b22919a306276e4cb84371580fe22b;p=tahoe-lafs%2Ftahoe-lafs.git command-line: fix a few bugs in the "execute this python file" way to execute rm --- diff --git a/src/allmydata/scripts/tahoe_rm.py b/src/allmydata/scripts/tahoe_rm.py index c9be8457..fbe9c2e9 100644 --- a/src/allmydata/scripts/tahoe_rm.py +++ b/src/allmydata/scripts/tahoe_rm.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -import re, socket, sys +import re, socket NODEURL_RE=re.compile("http://([^:]*)(:([1-9][0-9]*))?") @@ -71,7 +71,7 @@ def main(): vdrive_pathname = args[0] - return put(options.nodeurl, options.vdrive, vdrive_pathname, local_file) + return rm(options.nodeurl, options.vdrive, vdrive_pathname, 0) if __name__ == '__main__': main()