]> git.michaelhowe.org Git - packages/b/bup.git/commitdiff
cmd-server: receive-objects should return a relative, not absolute, path.
authorAvery Pennarun <apenwarr@gmail.com>
Mon, 11 Jan 2010 23:13:17 +0000 (18:13 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Mon, 11 Jan 2010 23:18:45 +0000 (18:18 -0500)
cmd-server.py

index 1ce16a0551b07562f429bac52968abdb1c05adf6..5de5c9972882b43d947574e72dc33c6250c59a05 100755 (executable)
@@ -47,8 +47,9 @@ def receive_objects(conn, junk):
         if not n:
             log('bup server: received %d object%s.\n' 
                 % (w.count, w.count!=1 and "s" or ''))
-            id = w.close()
-            conn.write('%s\n' % id)
+            fullpath = w.close()
+            (dir, name) = os.path.split(fullpath)
+            conn.write('%s.idx\n' % name)
             conn.ok()
             return
         buf = conn.read(n)  # object sizes in bup are reasonably small