From 5642a90449bd8fd8648e09106e0da6aaf48c4794 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Thu, 20 Dec 2018 20:28:34 +0000 Subject: [PATCH] Rename _compute_groups to compute_groups Signed-off-by: Niels Thykier --- britney.py | 2 +- britney2/migration.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/britney.py b/britney.py index b170d74..866654e 100755 --- a/britney.py +++ b/britney.py @@ -1507,7 +1507,7 @@ class Britney(object): for y in sorted((y for y in packages), key=attrgetter('uvname')): try: - updates, rms, _ = mm._compute_groups(y) + updates, rms, _ = mm.compute_groups(y) result = (y, frozenset(updates), frozenset(rms)) group_info[y] = result except MigrationConstraintException as e: diff --git a/britney2/migration.py b/britney2/migration.py index 5894b0d..fbb83ab 100644 --- a/britney2/migration.py +++ b/britney2/migration.py @@ -49,10 +49,10 @@ class MigrationManager(object): def current_transaction(self): return self._transactions[0] if self._transactions else None - def _compute_groups(self, - item, - allow_smooth_updates=True, - removals=frozenset()): + def compute_groups(self, + item, + allow_smooth_updates=True, + removals=frozenset()): """Compute the groups of binaries being migrated by item This method will compute the binaries that will be added to, @@ -240,7 +240,7 @@ class MigrationManager(object): pkg_universe = self.pkg_universe transaction = self.current_transaction - updates, rms, _ = self._compute_groups(item, removals=removals) + updates, rms, _ = self.compute_groups(item, removals=removals) # Handle the source package if item.architecture == 'source': @@ -374,7 +374,7 @@ class MigrationManager(object): affected_direct = set() affected_all = set() for item in items: - _, rms, _ = self._compute_groups(item, allow_smooth_updates=False) + _, rms, _ = self.compute_groups(item, allow_smooth_updates=False) removals.update(rms) affected_architectures.add(item.architecture)