From 5dc892ae8fe1500bdb97b17e24ae11f0ffa2be98 Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Thu, 16 Jan 2020 14:36:03 +0000 Subject: [PATCH] use uvname in excuses output --- britney2/excuse.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/britney2/excuse.py b/britney2/excuse.py index bb076cf..87ccd69 100644 --- a/britney2/excuse.py +++ b/britney2/excuse.py @@ -195,6 +195,10 @@ class Excuse(object): def name(self): return self.item.name + @property + def uvname(self): + return self.item.uvname + @property def source(self): return self.item.package @@ -376,12 +380,12 @@ class Excuse(object): dep = d.first_dep info = "" if d.valid: - info = "%s: %s %s" % (d.deptype, self.name, dep, dep) + info = "%s: %s %s" % (d.deptype, self.uvname, dep, dep) elif not d.possible: desc = d.first_impossible_dep - info = "Impossible %s: %s -> %s" % (d.deptype, self.name, desc) + info = "Impossible %s: %s -> %s" % (d.deptype, self.uvname, desc) else: - info = "%s: %s %s (not considered)" % (d.deptype, self.name, dep, dep) + info = "%s: %s %s (not considered)" % (d.deptype, self.uvname, dep, dep) dep_issues[d.verdict].add("Invalidated by %s" % d.deptype.get_description()) dep_issues[d.verdict].add(info) @@ -397,7 +401,7 @@ class Excuse(object): def html(self): """Render the excuse in HTML""" res = "%s (%s to %s)\n