FS#35168 - Asked for a number without showing what for when specifying version of package

Attached to Project: Pacman
Opened by Pedro (pedrosland) - Thursday, 09 May 2013, 16:42 GMT
Last edited by Allan McRae (Allan) - Thursday, 09 May 2013, 23:50 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 4.1.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Pacman doesn't show information when trying to install a package that has multiple providers when we specify the version of the package.

Pacman v4.1.1

Expected:
Same as "pacman -S libgl".

<code>
:: There are 3 providers available for libgl:
:: Repository extra
1) mesa-libgl 2) nvidia-304xx-utils 3) nvidia-libgl

Enter a number (default=1):
</code>

Got:
<code>
pacman -S libgl>=1.0.0

Enter a number (default=1):
</code>

I sincerely apologise if this is a duplicate but I have searched.
This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 09 May 2013, 23:50 GMT
Reason for closing:  Not a bug
Comment by Dave Reisner (falconindy) - Thursday, 09 May 2013, 17:09 GMT
pacman -S 'libgl>=1.0.0'

Notice the quotes...
Comment by Pedro (pedrosland) - Friday, 10 May 2013, 09:38 GMT
I feel silly. Thanks. I tested it and it seems that bash evaluates libgl>=1.0.0 to nothing when used as a parameter.

I do think though that pacman shouldn't be offering me a choice if it gets garbage in and instead say "error: no targets specified (use -h for help)" or "error: target not found:". Perhaps this is a separate usability issue though.
Comment by Dave Reisner (falconindy) - Friday, 10 May 2013, 11:28 GMT
Garbage? No. You're redirecting the output. Incidentally, you have a file called =1.0.0 you may want to delete.

Loading...