mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-02 14:11:30 +00:00
MigrationItem: make the "suite" property read/write
Changing the suite requires update the item's canonical names, as these need to reflect the new suite. The property() function only applies to new-style classes, so we also need to update MigrationItem to be new-style. Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
This commit is contained in:
parent
b635769606
commit
56afba5d4b
@ -12,7 +12,7 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
class MigrationItem:
|
class MigrationItem(object):
|
||||||
_architectures = []
|
_architectures = []
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -124,10 +124,15 @@ class MigrationItem:
|
|||||||
def package(self):
|
def package(self):
|
||||||
return self._package
|
return self._package
|
||||||
|
|
||||||
@property
|
def _get_suite(self):
|
||||||
def suite(self):
|
|
||||||
return self._suite
|
return self._suite
|
||||||
|
|
||||||
|
def _set_suite(self, value):
|
||||||
|
self._suite = value
|
||||||
|
self._canonicalise_name()
|
||||||
|
|
||||||
|
suite = property(_get_suite, _set_suite)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def version(self):
|
def version(self):
|
||||||
return self._version
|
return self._version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user