From: Avery Pennarun Date: Mon, 11 Jan 2010 23:13:17 +0000 (-0500) Subject: cmd-server: receive-objects should return a relative, not absolute, path. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=0b6f9cbf1a45c172c82970cc9a9daf5e7240b4fe;p=packages%2Fb%2Fbup.git cmd-server: receive-objects should return a relative, not absolute, path. --- diff --git a/cmd-server.py b/cmd-server.py index 1ce16a0..5de5c99 100755 --- a/cmd-server.py +++ b/cmd-server.py @@ -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