mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-05 10:58:07 +01:00
Check digest of modified files
this reverts a semantic change introduced by commit 48a35fed91d557fd89eed4297d2516776434d837 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…
x
Reference in New Issue
Block a user