From 3dcd359eeb0e3a3d652a470f3c826201ad4d9942 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Thu, 17 Aug 2017 04:29:20 +0000 Subject: [PATCH] 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. --- osc/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/core.py b/osc/core.py index e1be523f..54622ca9 100644 --- a/osc/core.py +++ b/osc/core.py @@ -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'