X-Git-Url: https://arthur.barton.de/gitweb/?p=bup.git;a=blobdiff_plain;f=lib%2Fcmd%2Findex-cmd.py;h=b3925b3135c0ad90e5780bde535116839926573f;hp=fbaa0299f2d1eab9d7676ffcd1a0da128b6940dd;hb=68e087e6f2f2311ac784b204c0de72dcddb08934;hpb=eadddb9ded212a4d6b9ec3f65532a7e6bb267bef diff --git a/lib/cmd/index-cmd.py b/lib/cmd/index-cmd.py index fbaa029..b3925b3 100755 --- a/lib/cmd/index-cmd.py +++ b/lib/cmd/index-cmd.py @@ -85,13 +85,12 @@ def clear_index(indexfile): def update_index(top, excluded_paths, exclude_rxs, xdev_exceptions, out=None): - # tmax and start must be epoch nanoseconds. + # tmax must be epoch nanoseconds. tmax = (time.time() - 1) * 10**9 ri = index.Reader(indexfile) msw = index.MetaStoreWriter(indexfile + b'.meta') wi = index.Writer(indexfile, msw, tmax) rig = IterHelper(ri.iter(name=top)) - tstart = int(time.time()) * 10**9 hlinks = hlinkdb.HLinkDB(indexfile + b'.hlink') @@ -131,7 +130,7 @@ def update_index(top, excluded_paths, exclude_rxs, xdev_exceptions, out=None): if rig.cur and rig.cur.name == path: # paths that already existed need_repack = False - if(rig.cur.stale(pst, tstart, check_device=opt.check_device)): + if(rig.cur.stale(pst, check_device=opt.check_device)): try: meta = metadata.from_path(path, statinfo=pst) except (OSError, IOError) as e: