[pacman-dev] Bug with pacman -Ss
Hi guys, I discovered a bug in pacman -Ss. Try in your consoles: pacman3 -Ss dvd+rw or pacman -Ss dvd+rw And the package exists: [douglas@ressonance ~]$ pacman3 -S dvd+rw-tools :: dvd+rw-tools-7.0-1: local version is up to date. Upgrade anyway? [Y/n] n warning: dvd+rw-tools-7.0-1 is up to date -- skipping local database is up to date [douglas@ressonance ~]$ Another doubt: Why it is giving me this response: warning: dvd+rw-tools-7.0-1 is up to date -- skipping local database is up to date About: warning: dvd+rw-tools-7.0-1 is up to date -- skipping I already know that it is up to date because of this line: :: dvd+rw-tools-7.0-1: local version is up to date. Upgrade anyway? [Y/n] n Why not keep the pacman2 behaviour ? -- Douglas Soares de Andrade Archlinux Brasil - http://archlinux-br.org Paradigma Internet - http://www.paradigma.com.br
On 2/23/07, Douglas Soares de Andrade <dsandrade@gmail.com> wrote:
Hi guys,
I discovered a bug in pacman -Ss. Try in your consoles:
pacman -Ss dvd+rw
Its not actually a bug. You are looking at pacman interpreting regular expressions, so '+' is a special character. You'll note that if you escape it like the following (and use quotes) it will work fine. pacman -Ss "dvd\+rw"
Another doubt:
Why it is giving me this response:
warning: dvd+rw-tools-7.0-1 is up to date -- skipping local database is up to date
About:
warning: dvd+rw-tools-7.0-1 is up to date -- skipping
I already know that it is up to date because of this line:
:: dvd+rw-tools-7.0-1: local version is up to date. Upgrade anyway? [Y/n] n
Why not keep the pacman2 behaviour ?
Not sure on this one, I'll have to look into it more. However, it is bad that it gives you confirmation of your behavior? -Dan
On 2/23/07, Dan McGee <dpmcgee@gmail.com> wrote:
Its not actually a bug. You are looking at pacman interpreting regular expressions, so '+' is a special character. You'll note that if you escape it like the following (and use quotes) it will work fine. pacman -Ss "dvd\+rw"
Perhaps pacman should search for both the regex and non-regex version? Most people wouldn't complain about getting extra results they didn't expect (i.e. all the regex matches here), but most _would_ complain if they didn't get what they wanted. Scott
On 2/23/07, Scott Horowitz <stonecrest@gmail.com> wrote:
On 2/23/07, Dan McGee <dpmcgee@gmail.com> wrote:
Its not actually a bug. You are looking at pacman interpreting regular expressions, so '+' is a special character. You'll note that if you escape it like the following (and use quotes) it will work fine. pacman -Ss "dvd\+rw"
Perhaps pacman should search for both the regex and non-regex version? Most people wouldn't complain about getting extra results they didn't expect (i.e. all the regex matches here), but most _would_ complain if they didn't get what they wanted.
Can you (Scott or anyone else with an interest in it) file this as a feature request? You can assign it to me if you have the permissions to do so. I just don't think I'm going to get to this in the immediate future, so it would be a nice record to have on there. -Dan
On 2/27/07, Dan McGee <dpmcgee@gmail.com> wrote:
Can you (Scott or anyone else with an interest in it) file this as a feature request? You can assign it to me if you have the permissions to do so. I just don't think I'm going to get to this in the immediate future, so it would be a nice record to have on there.
On 2/23/07, Douglas Soares de Andrade <dsandrade@gmail.com> wrote:
pacman3 -Ss dvd+rw
This is a problem with using regex syntax for searching. There are very few packages this goofs with, and this is one of them. Try: pacman3 -Ss 'dvd\+rw' or pacman3 -Ss dvd\\+rw
participants (4)
-
Aaron Griffin
-
Dan McGee
-
Douglas Soares de Andrade
-
Scott Horowitz