ubuntu-distro-info shows the current development series as "latest development" and "supported stable version" at the same time

Bug #1727751 reported by Nobuto Murata
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
distro-info (Debian)
Fix Released
Unknown
distro-info (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The current development series (cosmic as of today) should not be listed up as "supported stable versions".

$ ubuntu-distro-info --date 2018-06-27 --devel -f
Ubuntu 18.10 "Cosmic Cuttlefish"

$ ubuntu-distro-info --date 2018-06-27 --supported -f
Ubuntu 14.04 LTS "Trusty Tahr"
Ubuntu 16.04 LTS "Xenial Xerus"
Ubuntu 17.10 "Artful Aardvark"
Ubuntu 18.04 LTS "Bionic Beaver"
Ubuntu 18.10 "Cosmic Cuttlefish" <<< should not be here because it's a development series still

$ apt policy distro-info
distro-info:
  Installed: 0.18
  Candidate: 0.18
  Version table:
 *** 0.18 500
        500 http://jp.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status

$ date +%F
2018-06-27

$ grep cosmic /usr/share/distro-info/ubuntu.csv
18.10,Cosmic Cuttlefish,cosmic,2018-04-26,2018-10-18,2019-07-18

So the release date of "cosmic" is 2018-10-18 in distro-info-data, so cosmic as the current development series should not be listed with `ubuntu-distro-info --supported` because it's before the date as of today.

$ ubuntu-distro-info -h
...
  -d --devel latest development version

      --supported list of all supported stable versions
...

Tags: patch artful
tags: added: artful
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in distro-info (Ubuntu):
status: New → Confirmed
Revision history for this message
Brian Murray (brian-murray) wrote :

The information actually comes from the distro-info-data package, not distro-info. What version of distro-info-data do you have installed?

Get:1 http://ubuntu.osuosl.org/ubuntu artful-updates/main amd64 distro-info-data all 0.36ubuntu0.2 [4418 B]
Get:2 http://ubuntu.osuosl.org/ubuntu artful/main amd64 distro-info amd64 0.17 [20.3 kB]
Fetched 24.7 kB in 0s (112 kB/s)
Selecting previously unselected package distro-info-data.
(Reading database ... 15477 files and directories currently installed.)
Preparing to unpack .../distro-info-data_0.36ubuntu0.2_all.deb ...
Unpacking distro-info-data (0.36ubuntu0.2) ...
Selecting previously unselected package distro-info.
Preparing to unpack .../distro-info_0.17_amd64.deb ...
Unpacking distro-info (0.17) ...
Setting up distro-info-data (0.36ubuntu0.2) ...
Setting up distro-info (0.17) ...
(artful-amd64)root@impulse:/home/bdmurray/source-trees/daisy/trunk# ubuntu-distro-info --devel
cosmic
(artful-amd64)root@impulse:/home/bdmurray/source-trees/daisy/trunk# ubuntu-distro-info --devel -f
Ubuntu 18.10 "Cosmic Cuttlefish"

affects: distro-info (Ubuntu) → distro-info-data (Ubuntu)
Changed in distro-info-data (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Brian Murray (brian-murray) wrote :

Oh, I didn't notice how old this - it predates the SRU of distro-info-data to Artful so I'm going to set this to Fix Released.

Changed in distro-info-data (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Nobuto Murata (nobuto) wrote :

I didn't mean that way. Let me set it back to ditro-info package and update the title and description.

affects: distro-info-data (Ubuntu) → distro-info (Ubuntu)
Changed in distro-info (Ubuntu):
status: Fix Released → New
summary: - ubuntu-distro-info shows bionic as "latest development" and "supported
- stable version" at the same time
+ ubuntu-distro-info shows the current development series as "latest
+ development" and "supported stable version" at the same time
Nobuto Murata (nobuto)
description: updated
Nobuto Murata (nobuto)
description: updated
Revision history for this message
Nobuto Murata (nobuto) wrote :

I think we need a condition "date >= x.release" like an attached diff (it's only for python though).

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "date_x_release.diff" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Brian Murray (brian-murray) wrote :

How is the development release of Ubuntu unsupported? It is still a supported release of Ubuntu, we work to fix bugs on it, although it may not be a stable one.

Revision history for this message
Nobuto Murata (nobuto) wrote :

Yes, that totally depends on the definition of the option "--supported list of all supported stable versions". I was confused initially, but if that's by design, we don't need to change the behavior. Sorry for the noise.

Revision history for this message
Dan Watkins (oddbloke) wrote :

As nobuto notes, the man page says "list of all supported stable versions"; so either the functionality or the man page needs to be updated.

Revision history for this message
Stefano Rivera (stefanor) wrote :

Updating the man page (and --help)

Changed in distro-info (Ubuntu):
status: New → Fix Committed
Changed in distro-info (Debian):
status: Unknown → New
Changed in distro-info (Debian):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package distro-info - 1.1

---------------
distro-info (1.1) unstable; urgency=medium

  * Man pages and help: Clarify that --supported includes development releases
    (Closes: #902167, LP: #1727751)
  * Update Python module to satisfy pylint 2.11 (Closes: #998598)
  * Python: Drop object inheritance in classes, we no longer need to support
    2.7.
  * Re-black python.
  * Bump Standards-Version to 4.6.0, no changes needed.

 -- Stefano Rivera <email address hidden> Thu, 04 Nov 2021 14:27:37 -0700

Changed in distro-info (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.