arg_i=$((arg_i + 1))
done
# Here to end of preamble replaced during install
-bup_python="$(dirname "$0")/bup-python" || exit $?
+bup_python="$(dirname "$0")/../../config/bin/python" || exit $?
exec "$bup_python" "$0"
"""
# end of bup preamble
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')
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:
if opt.hash:
line += hexlify(ent.sha) + b' '
if opt.long:
- line += b'%7s %7s ' % (oct(ent.mode), oct(ent.gitmode))
+ line += b'%7s %7s ' % (oct(ent.mode).encode('ascii'),
+ oct(ent.gitmode).encode('ascii'))
out.write(line + (name or b'./') + b'\n')
if opt.check and (opt['print'] or opt.status or opt.modified or opt.update):