]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/index.py
Eliminate redundant check of index start against ctime
[bup.git] / lib / bup / index.py
index ae6201853f45b9f4e7dc7816d03cdc7fda8895ec..051bdb372ee33519bcd0fca35827562b59dfc366 100644 (file)
@@ -200,7 +200,7 @@ class Entry:
             log('pack error: %s (%r)\n' % (e, self))
             raise
 
-    def stale(self, st, tstart, check_device=True):
+    def stale(self, st, check_device=True):
         if self.size != st.st_size:
             return True
         if self.mtime != st.st_mtime:
@@ -219,10 +219,6 @@ class Entry:
             return True
         if check_device and (self.dev != st.st_dev):
             return True
-        # Check that the ctime's "second" is at or after tstart's.
-        ctime_sec_in_ns = xstat.fstime_floor_secs(st.st_ctime) * 10**9
-        if ctime_sec_in_ns >= tstart:
-            return True
         return False
 
     def update_from_stat(self, st, meta_ofs):