]> arthur.barton.de Git - bup.git/blobdiff - cmd/midx-cmd.py
Move .idx file writing to C
[bup.git] / cmd / midx-cmd.py
index 9c6dcd473e2601e567d6d6e040f52d3c3e3cd79c..7718549ac95465d9821530eda82e0f73c4651ae8 100755 (executable)
@@ -6,7 +6,6 @@ from bup.helpers import *
 
 PAGE_SIZE=4096
 SHA_PER_PAGE=PAGE_SIZE/20.
-SEEK_END=2  # os.SEEK_END is not defined in python 2.4
 
 optspec = """
 bup midx [options...] <idxnames...>
@@ -87,7 +86,7 @@ def _do_midx(outdir, outfilename, infilenames, prefixstr):
     fmap.flush()
     fmap.close()
 
-    f.seek(0, SEEK_END)
+    f.seek(0, git.SEEK_END)
     f.write('\0'.join(allfilenames))
     f.close()
     os.rename(outfilename + '.tmp', outfilename)