[PATCH 1/1] RemotePackStore.write: return (len, crc), not (oid, crc)

0 views
Skip to first unread message

Rob Browning

unread,
Mar 5, 2026, 5:14:59 PMMar 5
to bup-...@googlegroups.com
Returning the oid was just a mistake (cf. LocalPackStore).

Signed-off-by: Rob Browning <r...@defaultvalue.org>
Tested-by: Rob Browning <r...@defaultvalue.org>
---

Pushed to main.

lib/bup/client.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bup/client.py b/lib/bup/client.py
index 14d3d9a2..95fd03ef 100644
--- a/lib/bup/client.py
+++ b/lib/bup/client.py
@@ -665,7 +665,7 @@ class RemotePackStore:
self._suggest_packs()
self._objcache.refresh()

- return sha, crc
+ return len(data), crc

def finish_pack(self, *, abort=False):
if abort:
--
2.47.3

Reply all
Reply to author
Forward
0 new messages