From 8efbae883d5f4417a3fa0d47ea811cb0437e5519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Wed, 24 Mar 2021 17:13:32 +0000 Subject: [PATCH] Log winners. --- ognibuild/debian/build_deps.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ognibuild/debian/build_deps.py b/ognibuild/debian/build_deps.py index e4ef97c..761b27f 100644 --- a/ognibuild/debian/build_deps.py +++ b/ognibuild/debian/build_deps.py @@ -18,6 +18,9 @@ """Tie breaking by build deps.""" +import logging + + class BuildDependencyTieBreaker(object): def __init__(self, rootdir): @@ -57,7 +60,11 @@ class BuildDependencyTieBreaker(object): pass if not by_count: return None - return max(by_count.items(), key=lambda k: k[1])[0] + top = max(by_count.items(), key=lambda k: k[1]) + logging.info( + 'Breaking tie between %r to %r based on build-depends count', + [repr(r) for r in reqs], top[0]) + return top[0] if __name__ == '__main__':