Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 874618 - app-eselect/eselect-python: "eselect python set N" should output a confirmation of the selected option
Summary: app-eselect/eselect-python: "eselect python set N" should output a confirmati...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 874351
  Show dependency tree
 
Reported: 2022-10-03 10:20 UTC by Andrew Church
Modified: 2023-01-01 08:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Trivial patch to add set feedback (set-feedback.patch,421 bytes, patch)
2023-01-01 08:31 UTC, Andrew Church
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Church 2022-10-03 10:20:42 UTC
"eselect python set N" should output a confirmation of the selected option, as (for example) gcc-config does:

$ gcc-config 2
 * Switching native-compiler to x86_64-pc-linux-gnu-12.2.0 ... [ ok ]

See also bug 874351.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-04 01:05:00 UTC
eselect-python is pretty much in "serious bugs only" maintenance mode now (see news items from a while ago). Patches welcome.
Comment 2 Andrew Church 2022-10-04 03:17:50 UTC
I'm not familiar with the inner workings of eselect, but if this functionality is added to eselect-wine (bug 874612), I'll see if I can do the same here.
Comment 3 Ionen Wolkens gentoo-dev 2022-11-15 11:43:04 UTC
(In reply to Andrew Church from comment #2)
> I'm not familiar with the inner workings of eselect, but if this
> functionality is added to eselect-wine (bug 874612), I'll see if I can do
> the same here.
eselect doesn't have a designated command for set feedback (only warning, error, and list display), so as far as eselect-wine goes this is just going to be "echo $this happened" to be simple

gcc-config has different toys to play with (like ebegin/eend) given it loads /lib/gentoo/functions.sh (gcc's eselect module is just a wrapper to gcc-config)

That aside, eselect-python is not really used anymore so I'm not sure if it makes sense to improve it (guess some users still like the list and not having to edit python-exec.conf by hand, fwiw).
Comment 4 Andrew Church 2023-01-01 08:31:50 UTC
Created attachment 846346 [details, diff]
Trivial patch to add set feedback

A bit belated since I only just found time to get back to this, but it looks like this trivial patch should do what I was looking for.