searchall: exclude cygwin32 packages

This commit is contained in:
Steven Penny 2015-07-07 21:30:53 -05:00
parent b1d9475b34
commit 4e05a4540b
1 changed files with 5 additions and 9 deletions

14
apt-cyg
View File

@ -417,15 +417,11 @@ function apt-searchall {
printf -v qs 'text=1&arch=%s&grep=%s' $arch "$pkg" printf -v qs 'text=1&arch=%s&grep=%s' $arch "$pkg"
wget -O matches cygwin.com/cgi-bin2/package-grep.cgi?"$qs" wget -O matches cygwin.com/cgi-bin2/package-grep.cgi?"$qs"
awk ' awk '
{ NR == 1 {next}
if (NR == 1) mc[$1]++ {next}
next /-debuginfo-/ {next}
if (mc[$1]++) /^cygwin32-/ {next}
next {print $1}
if (/-debuginfo-/)
next
print $1
}
' FS=-[[:digit:]] matches ' FS=-[[:digit:]] matches
done done
} }