Browse Source

switch newer in testing to detailed excuse info

Also, set verdict to REJECTED_PERMANENTLY explicitly. This was already done
implicitly, because that is the default and it was never set to anything else.
devuan-deployment
Ivo De Decker 1 year ago
parent
commit
cda4655b83
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      britney2/excusefinder.py

+ 2
- 1
britney2/excusefinder.py View File

@@ -356,7 +356,8 @@ class ExcuseFinder(object):

# if the version in unstable is older, then stop here with a warning in the excuse and return False
if source_t and apt_pkg.version_compare(source_u.version, source_t.version) < 0:
excuse.addhtml("ALERT: %s is newer in the target suite (%s %s)" % (src, source_t.version, source_u.version))
excuse.policy_verdict = PolicyVerdict.REJECTED_PERMANENTLY
excuse.add_verdict_info(excuse.policy_verdict, "ALERT: %s is newer in the target suite (%s %s)" % (src, source_t.version, source_u.version))
self.excuses[excuse.name] = excuse
excuse.addreason("newerintesting")
return False


Loading…
Cancel
Save