stop reindexing empty files on startup

This commit is contained in:
ed 2022-08-12 16:31:36 +02:00
parent c00b80ca29
commit ad18b6e15e

View file

@ -833,7 +833,7 @@ class Up2k(object):
self.log(t.format(top, rp, len(in_db), rep_db)) self.log(t.format(top, rp, len(in_db), rep_db))
dts = -1 dts = -1
if dts == lmod and dsz == sz and (nohash or dw[0] != "#"): if dts == lmod and dsz == sz and (nohash or dw[0] != "#" or not sz):
continue continue
t = "reindex [{}] => [{}] ({}/{}) ({}/{})".format( t = "reindex [{}] => [{}] ({}/{}) ({}/{})".format(