Fix wrong log message

Britney2's Hint object has no 'days' attribute, so we ought not try to
print it.

Seen in the wild for several hours during the Artful Alpha 1 milestone
freeze, when a duplicate block hint caused britney to fail to run due to
the resulting exception.
broken-hint-logging
Steve Langasek 8 years ago
parent 41ac7a81f9
commit b80b8c533a

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

Loading…
Cancel
Save