mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-06-09 16:51:33 +00:00
Rename _compute_groups to compute_groups
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
33ba41c76e
commit
5642a90449
@ -1507,7 +1507,7 @@ class Britney(object):
|
|||||||
|
|
||||||
for y in sorted((y for y in packages), key=attrgetter('uvname')):
|
for y in sorted((y for y in packages), key=attrgetter('uvname')):
|
||||||
try:
|
try:
|
||||||
updates, rms, _ = mm._compute_groups(y)
|
updates, rms, _ = mm.compute_groups(y)
|
||||||
result = (y, frozenset(updates), frozenset(rms))
|
result = (y, frozenset(updates), frozenset(rms))
|
||||||
group_info[y] = result
|
group_info[y] = result
|
||||||
except MigrationConstraintException as e:
|
except MigrationConstraintException as e:
|
||||||
|
@ -49,7 +49,7 @@ class MigrationManager(object):
|
|||||||
def current_transaction(self):
|
def current_transaction(self):
|
||||||
return self._transactions[0] if self._transactions else None
|
return self._transactions[0] if self._transactions else None
|
||||||
|
|
||||||
def _compute_groups(self,
|
def compute_groups(self,
|
||||||
item,
|
item,
|
||||||
allow_smooth_updates=True,
|
allow_smooth_updates=True,
|
||||||
removals=frozenset()):
|
removals=frozenset()):
|
||||||
@ -240,7 +240,7 @@ class MigrationManager(object):
|
|||||||
pkg_universe = self.pkg_universe
|
pkg_universe = self.pkg_universe
|
||||||
transaction = self.current_transaction
|
transaction = self.current_transaction
|
||||||
|
|
||||||
updates, rms, _ = self._compute_groups(item, removals=removals)
|
updates, rms, _ = self.compute_groups(item, removals=removals)
|
||||||
|
|
||||||
# Handle the source package
|
# Handle the source package
|
||||||
if item.architecture == 'source':
|
if item.architecture == 'source':
|
||||||
@ -374,7 +374,7 @@ class MigrationManager(object):
|
|||||||
affected_direct = set()
|
affected_direct = set()
|
||||||
affected_all = set()
|
affected_all = set()
|
||||||
for item in items:
|
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)
|
removals.update(rms)
|
||||||
affected_architectures.add(item.architecture)
|
affected_architectures.add(item.architecture)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user