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:
@@ -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'
|
||||||
|
Reference in New Issue
Block a user