mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-09 16:01:28 +00:00
Make sure all DistroInfo classes have a .codename method.
This commit is contained in:
parent
ffa4991cb4
commit
78a427ad2c
@ -110,6 +110,10 @@ class DistroInfo(object):
|
|||||||
"""Check if the given codename is known."""
|
"""Check if the given codename is known."""
|
||||||
return codename in self.all
|
return codename in self.all
|
||||||
|
|
||||||
|
def codename(self, release, date=None, default=None):
|
||||||
|
"""Map codename aliases to the codename they describe"""
|
||||||
|
return release
|
||||||
|
|
||||||
def unsupported(self, date=None):
|
def unsupported(self, date=None):
|
||||||
"""Get list of all unsupported distributions based on the given date."""
|
"""Get list of all unsupported distributions based on the given date."""
|
||||||
if date is None:
|
if date is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user