From 47834b3279c82ad34336dd04b89c2d90a57dc0cd Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Sat, 12 Aug 2017 22:10:41 +0200 Subject: [PATCH] allow to get old status behaviour back --- osc/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osc/core.py b/osc/core.py index 1a5be42d..d0dbe446 100644 --- a/osc/core.py +++ b/osc/core.py @@ -1843,6 +1843,7 @@ class Package: """ + alwaysdigest = False known_by_meta = False exists = False exists_in_store = False @@ -1866,7 +1867,7 @@ class Package: state = 'A' elif exists and exists_in_store and known_by_meta: filemeta = self.findfilebyname(n) - if os.path.getmtime(localfile) != filemeta.mtime and dgst(localfile) != filemeta.md5: + if (alwaysdigest or os.path.getmtime(localfile) != filemeta.mtime) and dgst(localfile) != filemeta.md5: state = 'M' else: state = ' '