From 0b6f9cbf1a45c172c82970cc9a9daf5e7240b4fe Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Mon, 11 Jan 2010 18:13:17 -0500 Subject: [PATCH] cmd-server: receive-objects should return a relative, not absolute, path. --- cmd-server.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.5