]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
command-line: fix a few bugs in the "execute this python file" way to execute rm
authorZooko O'Whielacronx <zooko@zooko.com>
Fri, 17 Aug 2007 21:17:31 +0000 (14:17 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Fri, 17 Aug 2007 21:17:31 +0000 (14:17 -0700)
src/allmydata/scripts/tahoe_rm.py

index c9be8457a58bebde5aef0fcf15804d060849ef93..fbe9c2e9cc233d3226ab461ae82da4b13feab6cf 100644 (file)
@@ -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()