[pacman-dev] [PATCH 2/6] pacsearch: support for multiple search patterns like in pacman search
Pierre Neidhardt
ambrevar at gmail.com
Mon Feb 3 06:36:43 EST 2014
Previously the different positional arguments formed a single pattern containing
spaces. Now each argument is a different pattern to match.
Signed-off-by: Pierre Neidhardt <ambrevar at gmail.com>
---
contrib/pacsearch.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/pacsearch.in b/contrib/pacsearch.in
index 71e0107..8e05a1a 100644
--- a/contrib/pacsearch.in
+++ b/contrib/pacsearch.in
@@ -100,7 +100,7 @@ sub to_color {
my %allpkgs = ();
-my $syncout = `pacman -Ss '@ARGV'`;
+my $syncout = `pacman -Ss @ARGV`;
# split each sync search entry into its own array entry
my @syncpkgs = split(/\n^(?=\w)/m, $syncout);
# remove the extra \n from the last desc entry
@@ -127,7 +127,7 @@ foreach $_ (@syncpkgs) {
$allpkgs{$pkgfields[1]} = [ @pkgfields ];
}
-my $queryout = `pacman -Qs '@ARGV'`;
+my $queryout = `pacman -Qs @ARGV`;
# split each querysearch entry into its own array entry
my @querypkgs = split(/\n^(?=\w)/m, $queryout);
# remove the extra \n from the last desc entry
--
1.8.5.3
More information about the pacman-dev
mailing list