From cda4655b839941f6ed62d8fae1a289a5db052ce6 Mon Sep 17 00:00:00 2001
From: Ivo De Decker <ivodd@debian.org>
Date: Thu, 29 Aug 2019 21:24:15 +0000
Subject: [PATCH] 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.
---
 britney2/excusefinder.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/britney2/excusefinder.py b/britney2/excusefinder.py
index f1decd7..339b3f3 100644
--- a/britney2/excusefinder.py
+++ b/britney2/excusefinder.py
@@ -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