[pacman-dev] [PATCHv4 1/6] pacsearch: removed useless comment
Signed-off-by: Pierre Neidhardt
In the old pacsearch, packages were identified uniquely by pkgfields[1], which
contained pkgname+pkgver. Since commit 4d13558 pkgver is stored in pkgfields[2],
and packages have been identified with pkgfields[1] only. Because of that
packages with a different version would appear once only.
This fixes the regression by identifying packages with both pkgfields[1] and
pkgfields[2].
Signed-off-by: Pierre Neidhardt
Package are processed in the same order as pacman output, so there is no real
need to sort. This makes the code simpler and faster.
The only difference is that local packages will always be printed at the
end. Previously, they were printed before multilib for instance.
Signed-off-by: Pierre Neidhardt
We include the leading space in the match for 'group' and 'installed'. This
allows us to remove the conditions when printing.
Signed-off-by: Pierre Neidhardt
On 14/02/14 22:18, Pierre Neidhardt wrote:
We include the leading space in the match for 'group' and 'installed'. This allows us to remove the conditions when printing.
Signed-off-by: Pierre Neidhardt
---
I'm guessing patches 1 to 4 have not changed. I had pulled the old versions onto my patchqueue branch and am feeling too lazy to check. In the future, only resubmit the ones that have changed. We have patchwork to keep track of the rest. Allan
On 14-02-15 11:15:24, Allan McRae wrote:
On 14/02/14 22:18, Pierre Neidhardt wrote:
We include the leading space in the match for 'group' and 'installed'. This allows us to remove the conditions when printing.
Signed-off-by: Pierre Neidhardt
--- I'm guessing patches 1 to 4 have not changed. I had pulled the old versions onto my patchqueue branch and am feeling too lazy to check.
Right, changes start from patch 5.
In the future, only resubmit the ones that have changed. We have patchwork to keep track of the rest.
Allan
Didn't know that, thanks for telling me. -- Pierre Neidhardt "I'd love to go out with you, but I'm taking punk totem pole carving."
Previously only one pattern was allowed.
$ pacsearch foo bar
Search for packages containing 'foo bar'.
$ pacman -Ss foo bar
Search for packages containing both 'foo' and 'bar'.
Note that removing the quotes from the call was not enough since
$ pacsearch 'foo|bar'
would then fail.
Note the use of '--' to indicate the end of option parsing. This way we ensure
that input will always be valid and we need not input checks anymore.
Signed-off-by: Pierre Neidhardt
Signed-off-by: Pierre Neidhardt
participants (2)
-
Allan McRae
-
Pierre Neidhardt