]> arthur.barton.de Git - bup.git/blobdiff - cmd/midx-cmd.py
Add bup prune-older command
[bup.git] / cmd / midx-cmd.py
index d867ad6064f72ffd2484a59c1bffdf10ef463fbf..8e0b87e1d948bf836b58c2b8d65e57122c00dda1 100755 (executable)
@@ -4,10 +4,14 @@ bup_python="$(dirname "$0")/bup-python" || exit $?
 exec "$bup_python" "$0" ${1+"$@"}
 """
 # end of bup preamble
-import sys, math, struct, glob, resource
-import tempfile
+
+import glob, math, os, resource, struct, sys, tempfile
+
 from bup import options, git, midx, _helpers, xstat
-from bup.helpers import *
+from bup.helpers import (Sha1, add_error, atomically_replaced_file, debug1, fdatasync,
+                         handle_ctrl_c, log, mmap_readwrite, qprogress,
+                         saved_errors, unlink)
+
 
 PAGE_SIZE=4096
 SHA_PER_PAGE=PAGE_SIZE/20.