From 4e05a4540b8bfd228bb8a812137e55845e90128a Mon Sep 17 00:00:00 2001 From: Steven Penny Date: Tue, 7 Jul 2015 21:30:53 -0500 Subject: [PATCH] searchall: exclude cygwin32 packages --- apt-cyg | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/apt-cyg b/apt-cyg index e6a9a6c..cb94407 100755 --- a/apt-cyg +++ b/apt-cyg @@ -417,15 +417,11 @@ function apt-searchall { printf -v qs 'text=1&arch=%s&grep=%s' $arch "$pkg" wget -O matches cygwin.com/cgi-bin2/package-grep.cgi?"$qs" awk ' - { - if (NR == 1) - next - if (mc[$1]++) - next - if (/-debuginfo-/) - next - print $1 - } + NR == 1 {next} + mc[$1]++ {next} + /-debuginfo-/ {next} + /^cygwin32-/ {next} + {print $1} ' FS=-[[:digit:]] matches done }