Opened 15 years ago

Closed 13 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)

select.sh.diff (704 bytes) - added by lperry (Perry Lee) 15 years ago.

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by lperry (Perry Lee)

Attachment: select.sh.diff added

comment:1 Changed 15 years ago by raimue (Rainer Müller)

Status: newassigned

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

comment:2 Changed 15 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:3 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:4 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

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

Note: See TracTickets for help on using tickets.