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") (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.version, hint2.user,
hint.version, hint.user, hint.days), type="W") hint.version, hint.user), type="W")
hint2.set_active(False) hint2.set_active(False)
z[package] = key z[package] = key

Loading…
Cancel
Save