[Bug 2029089] Re: [SRU] Please backport UbuntuDistroInfo().get_all(result="object") to Xenial
Nathan Teodosio
2029089 at bugs.launchpad.net
Fri Mar 1 13:39:24 UTC 2024
In Xenial, installed 0.14ubuntu0.3 and executed
--->
python3 <<EOF | sort -n
import distro_info
for d in distro_info.UbuntuDistroInfo().get_all(result="object"):
print("%s %s" % (d.eol, d.codename))
EOF
<---
whose output was correct:
--->
2006-04-30 Warty Warthog
2006-10-31 Hoary Hedgehog
2007-04-13 Breezy Badger
2008-04-25 Edgy Eft
2008-10-19 Feisty Fawn
2009-04-18 Gutsy Gibbon
2009-07-14 Dapper Drake
2010-04-30 Intrepid Ibex
2010-10-23 Jaunty Jackalope
2011-04-29 Karmic Koala
2011-05-12 Hardy Heron
2012-04-10 Maverick Meerkat
2012-10-28 Natty Narwhal
2013-05-09 Lucid Lynx
2013-05-09 Oneiric Ocelot
2014-01-27 Raring Ringtail
2014-05-16 Quantal Quetzal
2014-07-17 Saucy Salamander
2015-07-23 Utopic Unicorn
2016-01-23 Vivid Vervet
2016-07-22 Wily Werewolf
2017-04-26 Precise Pangolin
2017-07-20 Yakkety Yak
2018-01-13 Zesty Zapus
2018-07-19 Artful Aardvark
2019-04-25 Trusty Tahr
2019-07-18 Cosmic Cuttlefish
2020-01-18 Disco Dingo
2020-07-17 Eoan Ermine
2021-04-21 Xenial Xerus
2021-07-22 Groovy Gorilla
2022-01-20 Hirsute Hippo
2022-07-14 Impish Indri
2023-04-26 Bionic Beaver
2023-07-20 Kinetic Kudu
2024-01-25 Lunar Lobster
2025-04-23 Focal Fossa
2027-04-21 Jammy Jellyfish
<---
** Tags removed: verification-needed verification-needed-xenial
** Tags added: verification-done verification-done-xenial
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to distro-info in Ubuntu.
https://bugs.launchpad.net/bugs/2029089
Title:
[SRU] Please backport UbuntuDistroInfo().get_all(result="object") to
Xenial
Status in distro-info package in Ubuntu:
Triaged
Status in distro-info source package in Xenial:
Fix Committed
Bug description:
I'm working on a update to software-properties in 16.04 to support the
Ubuntu Pro tab. That work was already released to >=18.04, containing,
for example, in commit "Show extended security maintenance status"[1]:
```python
def current_distro():
distro = aptsources.distro.get_distro()
di = distro_info.UbuntuDistroInfo()
releases = di.get_all(result="object")
[...]
```
That is functionality introduced in versions 0.15 and 0.16 of distro-
info, for which Xenial didn't receive a backport yet.
Test Plan
---------
1. Install the update.
2. Verify that running this in a shell prints a list of a correct list of EOL date (in YY-MM-DDDD format) and distribution name to the standard output:
--->
python3 <<EOF | sort -n
import distro_info
for d in distro_info.UbuntuDistroInfo().get_all(result="object"):
print("%s %s" % (d.eol, d.codename))
EOF
<---
Regression potential
--------------------
If something were wrong with this update, reverse dependencies could
misidentify a given release, e.g. by incorrectly assessing a user
release as supported or no longer supported, LTS or non-LTS etc..
[1] https://git.launchpad.net/software-
properties/commit/?h=ubuntu/bionic&id=c2bb1f8eeb70e2a9c4b40f326d21c287dec1baa8
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/distro-info/+bug/2029089/+subscriptions
More information about the foundations-bugs
mailing list