[Bug 2029089] Re: Please backport UbuntuDistroInfo().get_all(result="object") to Xenial

Nathan Teodosio 2029089 at bugs.launchpad.net
Thu Aug 3 14:07:09 UTC 2023


** Description changed:

  I'm working on a update to software-properties in 16.04 to support the
- Ubuntu Pro tab. This work has already been released to >=18.04 (e.g.
- check Pro commits to https://code.launchpad.net/~ubuntu-core-
- dev/software-properties/+git/software-properties/+ref/ubuntu/bionic),
- but Xenial didn't receive a backport. Could you please procure that?
- 
- The commit in question is "Show extended security maintenance status"
- which adds:
+ 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")
-     [...]
+     distro = aptsources.distro.get_distro()
+     di = distro_info.UbuntuDistroInfo()
+     releases = di.get_all(result="object")
+     [...]
  ```
  
- This was added in distro-info 0.15 and 0.16.
+ 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(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

** Also affects: distro-info (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: distro-info (Ubuntu Xenial)
       Status: New => Triaged

** Changed in: distro-info (Ubuntu Xenial)
   Importance: Undecided => High

** Summary changed:

- Please backport UbuntuDistroInfo().get_all(result="object") to Xenial
+ [SRU] Please backport UbuntuDistroInfo().get_all(result="object") to Xenial

** Description changed:

  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(d.eol, d.codename)
+ 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

-- 
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:
  Triaged

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