From 200ce9069df33d6e5bbb39fd4b0026dac7172c44 Mon Sep 17 00:00:00 2001 From: Steven Penny Date: Sat, 31 May 2014 11:25:12 -0500 Subject: [PATCH] Search "devel" packages unless looking for ".exe" apt-cyg searchall will now only exclude "devel" packages if you are searching for ".exe" or similar. --- apt-cyg | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apt-cyg b/apt-cyg index 815c2c7..af1923f 100755 --- a/apt-cyg +++ b/apt-cyg @@ -312,14 +312,14 @@ apt-searchall () { cd /tmp wget -O matches cygwin.com/cgi-bin2/package-grep.cgi?"$qs" awk ' - NR > 1 && - ! /-debuginfo-/ && - ! /-devel-/ && - ! /-doc-/ && - ! /-src\t$/ && - ! mc[$2]++ && + NR == 1 {next} + /-doc-/ {next} + /-debuginfo-/ {next} + /-devel-/ && pkg~/\.exe$/ {next} + /-src\t$/ {next} + mc[$2]++ {next} $0 = $2 - ' FS=/ matches + ' FS=/ pkg="$pkg" matches done }