PkgInfo: update Ubuntu codenames & fix tests

This commit is contained in:
James Lu 2021-07-14 22:52:19 -07:00
parent a62a0184ed
commit c7c1153459
2 changed files with 5 additions and 5 deletions

View File

@ -107,7 +107,7 @@ class PkgInfo(callbacks.Plugin):
debian = ("oldoldstable", "oldstable", "wheezy", "stable",
"jessie", "testing", "sid", "unstable", "stretch", "buster",
"experimental", "bullseye", "bookworm")
ubuntu = ("trusty", "xenial", "artful", "bionic", "disco", "eoan", "focal")
ubuntu = ("bionic", "focal", "groovy", "hirsute", "impish")
mint = ("betsy", "cindy", "qiana", "rebecca", "rafaela", "rosa",
"sarah", "serena", "sonya", "sylvia", "tara")

View File

@ -47,10 +47,10 @@ class PkgInfoTestCase(PluginTestCase):
self.assertNotError('pkgsearch debian python')
def test_pkg_ubuntu(self):
self.assertNotError('pkg xenial apt')
self.assertNotError('pkg xenial python3 --depends')
self.assertNotError('pkg xenial ubuntu-meta --source')
self.assertNotError('pkg xenial ubuntu-meta --source --depends')
self.assertNotError('pkg focal apt')
self.assertNotError('pkg focal python3 --depends')
self.assertNotError('pkg focal ubuntu-meta --source')
self.assertNotError('pkg focal ubuntu-meta --source --depends')
self.assertNotError('pkgsearch ubuntu gtk')
def test_vlist(self):