1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-31 20:26:13 +01:00

allow to get old status behaviour back

This commit is contained in:
Bernhard M. Wiedemann 2017-08-12 22:10:41 +02:00
parent f1f6e9501d
commit 47834b3279

View File

@ -1843,6 +1843,7 @@ class Package:
""" """
alwaysdigest = False
known_by_meta = False known_by_meta = False
exists = False exists = False
exists_in_store = False exists_in_store = False
@ -1866,7 +1867,7 @@ class Package:
state = 'A' state = 'A'
elif exists and exists_in_store and known_by_meta: elif exists and exists_in_store and known_by_meta:
filemeta = self.findfilebyname(n) 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' state = 'M'
else: else:
state = ' ' state = ' '