1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-11 17:54:06 +02:00

Check digest of modified files

this reverts a semantic change introduced by commit
48a35fed91
that caused files with updated timestamps to always be in "M" state.
This commit is contained in:
Bernhard M. Wiedemann
2017-08-17 04:29:20 +00:00
parent d126d07787
commit 3dcd359eeb

View File

@@ -1868,7 +1868,7 @@ class Package:
filemeta = self.findfilebyname(n) filemeta = self.findfilebyname(n)
state = ' ' state = ' '
if conf.config['status_mtime_heuristic']: if conf.config['status_mtime_heuristic']:
if os.path.getmtime(localfile) != filemeta.mtime: if os.path.getmtime(localfile) != filemeta.mtime and dgst(localfile) != filemeta.md5:
state = 'M' state = 'M'
elif dgst(localfile) != filemeta.md5: elif dgst(localfile) != filemeta.md5:
state = 'M' state = 'M'