Search "devel" packages unless looking for ".exe"

apt-cyg searchall will now only exclude "devel" packages if you are searching
for ".exe" or similar.
This commit is contained in:
Steven Penny 2014-05-31 11:25:12 -05:00
parent c8fb2604da
commit 200ce9069d
1 changed files with 7 additions and 7 deletions

14
apt-cyg
View File

@ -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
}