1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01: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)
state = ' '
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'
elif dgst(localfile) != filemeta.md5:
state = 'M'