mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-10 05:57:28 +00:00
migrationitem: allow instances to be stringified
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
This commit is contained in:
parent
6c09b55a84
commit
860bd8069c
@ -23,6 +23,12 @@ class MigrationItem:
|
||||
if name:
|
||||
self._set_name(name)
|
||||
|
||||
def __str__(self):
|
||||
if self._versionned and not self.version is None:
|
||||
return self.name
|
||||
else:
|
||||
return self.uvname
|
||||
|
||||
def _get_name(self):
|
||||
return self._name
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user