MigrationItem: separate item name parsing from canonicalisation

This allows us to re-canonicalise the item's name if any of the item's
properties are altered without updating its name.

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
master
Adam D. Barratt 13 years ago
parent 6de2f0ad22
commit 2860576f1a

@ -92,6 +92,9 @@ class MigrationItem:
if self.is_removal: if self.is_removal:
self._suite = 'testing' self._suite = 'testing'
self._build_name()
def _build_name(self):
parts = self._name.split('/', 3) parts = self._name.split('/', 3)
is_removal = self.is_removal is_removal = self.is_removal
if len(parts) == 1 or self._architecture == 'source': if len(parts) == 1 or self._architecture == 'source':

Loading…
Cancel
Save