Opened 16 years ago
Closed 14 years ago
#18379 closed defect (fixed)
*_select should not list 'current' as a valid version
Reported by: | lperry (Perry Lee) | Owned by: | raimue (Rainer Müller) |
---|---|---|---|
Priority: | Low | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | Cc: | ||
Port: | python_select |
Description
Using python_select as an example...
perry@phoenix ~/tmp/bin $ python_select -l Available versions: current none python25 python25-apple
... the symlink 'current' should not be displayed.
I've attached a patch that modifies the grep pattern to exclude 'current'.
Attachments (1)
Change History (5)
Changed 16 years ago by lperry (Perry Lee)
Attachment: | select.sh.diff added |
---|
comment:1 Changed 16 years ago by raimue (Rainer Müller)
Status: | new → assigned |
---|
comment:2 Changed 16 years ago by lperry (Perry Lee)
I guess it's more of a personal preference. I saw 'current' as a behind the scenes means to indicate which version is selected (which python_select -s
shows and uses) rather than a valid version such as python25 and python25-apple. I can see how it'd be useful as a shortcut to recreate the symlinks - i.e., no need to check the currently selected version and then select it - but how often does that case come up?
comment:4 Changed 14 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
This isn't shown by 'port select', which is the replacement for the *_select scripts.
Note: See
TracTickets for help on using
tickets.
Why should it not be displayed? Selecting 'current' is a valid action and allows to recreate the symlinks without changing the version.