]> arthur.barton.de Git - bup.git/blobdiff - cmd/split-cmd.py
hashsplit.py: convert from 'bits' to 'level' earlier in the sequence.
[bup.git] / cmd / split-cmd.py
index 756d1b566a3937c7db7e3b62d48b98529b18579a..e016d1e8c897c266c0b6b8bc692585a4ea503f70 100755 (executable)
@@ -130,9 +130,10 @@ if pack_writer:
     tree = pack_writer.new_tree(shalist)
 else:
     last = 0
-    for (blob, bits) in hashsplit.hashsplit_iter(files,
-                                    keep_boundaries=opt.keep_boundaries,
-                                    progress=prog):
+    it = hashsplit.hashsplit_iter(files,
+                                  keep_boundaries=opt.keep_boundaries,
+                                  progress=prog)
+    for (blob, level) in it:
         hashsplit.total_split += len(blob)
         if opt.copy:
             sys.stdout.write(str(blob))