New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #18379 (closed defect: fixed)

Opened 3 years ago

Last modified 9 months ago

*_select should not list 'current' as a valid version

Reported by: perry@… Owned by: raimue@…
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

select.sh.diff Download (0.7 KB) - added by perry@… 3 years ago.

Change History

Changed 3 years ago by perry@…

Changed 3 years ago by raimue@…

  • status changed from new to assigned

Why should it not be displayed? Selecting 'current' is a valid action and allows to recreate the symlinks without changing the version.

Changed 3 years ago by perry@…

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?

Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Changed 9 months ago by jmr@…

  • status changed from assigned to closed
  • resolution set to fixed

This isn't shown by 'port select', which is the replacement for the *_select scripts.

Note: See TracTickets for help on using tickets.