From 4009d1b24407c8b79a32a79023e5a11df1c3b22d Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sat, 19 Jul 2014 09:51:36 +0200 Subject: [PATCH] inst/builder.py: Move a comment and write doc for method Signed-off-by: Niels Thykier --- installability/builder.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/installability/builder.py b/installability/builder.py index 10b78eb..c3ba7c8 100644 --- a/installability/builder.py +++ b/installability/builder.py @@ -198,10 +198,12 @@ class InstallabilityTesterBuilder(object): return rel def build(self): - # Merge reverse conflicts with conflicts - this saves some - # operations in _check_loop since we only have to check one - # set (instead of two) and we remove a few duplicates here - # and there. + """Compile the installability tester + + This method will compile an installability tester from the + information given and (where possible) try to optimise a + few things. + """ package_table = self._package_table reverse_package_table = self._reverse_package_table intern_set = self._intern_set @@ -220,6 +222,11 @@ class InstallabilityTesterBuilder(object): return False return True + + # Merge reverse conflicts with conflicts - this saves some + # operations in _check_loop since we only have to check one + # set (instead of two) and we remove a few duplicates here + # and there. for pkg in reverse_package_table: if pkg not in package_table: raise RuntimeError("%s/%s/%s referenced but not added!" % pkg)