Fix logging of conflicting hints

Not all hints have a 'days' attribute.

Signed-off-by: Julien Cristau <jcristau@debian.org>
ubuntu/rebased
Julien Cristau 8 years ago
parent ccfd61cf6a
commit 608ce0e9d2

@ -975,9 +975,9 @@ class Britney(object):
(x, package, hint.version, hint.user, hint2.version, hint2.user), type="W") (x, package, hint.version, hint.user, hint2.version, hint2.user), type="W")
hint.set_active(False) hint.set_active(False)
else: else:
self.log("Overriding %s[%s] = ('%s', '%s', '%s') with ('%s', '%s', '%s')" % self.log("Overriding %s[%s] = ('%s', '%s') with ('%s', '%s')" %
(x, package, hint2.version, hint2.user, hint2.days, (x, package, hint2.user, hint2, hint.user, hint),
hint.version, hint.user, hint.days), type="W") type="W")
hint2.set_active(False) hint2.set_active(False)
z[package] = key z[package] = key

Loading…
Cancel
Save