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:
parent
d126d07787
commit
3dcd359eeb
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user