[Bug 1867157] Re: Improve command-not-found package headers
Launchpad Bug Tracker
1867157 at bugs.launchpad.net
Fri Mar 27 14:52:37 UTC 2020
This bug was fixed in the package python-defaults - 2.7.17-2ubuntu4
---------------
python-defaults (2.7.17-2ubuntu4) focal; urgency=medium
* Correct command-not-found XB-Cnf headers LP: #1867157:
- Drop Extra-Commands headers, not needed
- Add XB- to ensure Visible-Pkgname actually is included in the binary
package heders
-- Dimitri John Ledkov <xnox at ubuntu.com> Fri, 13 Mar 2020 12:31:23
+0000
** Changed in: python-defaults (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python2.7 in Ubuntu.
https://bugs.launchpad.net/bugs/1867157
Title:
Improve command-not-found package headers
Status in python-defaults package in Ubuntu:
Fix Released
Status in python2.7 package in Ubuntu:
Fix Released
Status in python3-defaults package in Ubuntu:
New
Status in python3.8 package in Ubuntu:
Fix Released
Bug description:
Improve command-not-found package headers
command-not-found uses package metadata, and to improve the UX of the misspelled commands / proposed packages.
python2.7-minimal should gain XB-Cnf-Visible-Pkgname: python2.7
python3.8-minimal should gain XB-Cnf-Visible-Pkgname: python3.8
python2-minimal should gain XB-Cnf-Visible-Pkgname: python2
python3-minimal should gain XB-Cnf-Visible-Pkgname: python3
This will then improve these messages from:
"""
command 'python2.7' from deb python2.7-minimal (2.7.17-1)
command 'python3.8' from deb python3.8-minimal (3.8.0-5)
command 'python2' from deb python2-minimal (2.7.17-2)
command 'python3' from deb python3-minimal (3.7.5-1ubuntu1)
"""
To
"""
command 'python2.7' from deb python2.7 (2.7.17-1)
command 'python3.8' from deb python3.8 (3.8.0-5)
command 'python2' from deb python2 (2.7.17-2)
command 'python3' from deb python3 (3.7.5-1ubuntu1)
"""
python3 should drop
XB-Cnf-Extra-Commands: python
XB-Cnf-Priority-Bonus: 5
Such that it stops suggesting that somehow python is available from
python3 package, which is a lie.
There is a special case for "python" command hint in command-not-found
already, which simply points people to "python3".
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/1867157/+subscriptions
More information about the foundations-bugs
mailing list