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:
parent
c8fb2604da
commit
200ce9069d
14
apt-cyg
14
apt-cyg
|
@ -312,14 +312,14 @@ apt-searchall () {
|
||||||
cd /tmp
|
cd /tmp
|
||||||
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 &&
|
NR == 1 {next}
|
||||||
! /-debuginfo-/ &&
|
/-doc-/ {next}
|
||||||
! /-devel-/ &&
|
/-debuginfo-/ {next}
|
||||||
! /-doc-/ &&
|
/-devel-/ && pkg~/\.exe$/ {next}
|
||||||
! /-src\t$/ &&
|
/-src\t$/ {next}
|
||||||
! mc[$2]++ &&
|
mc[$2]++ {next}
|
||||||
$0 = $2
|
$0 = $2
|
||||||
' FS=/ matches
|
' FS=/ pkg="$pkg" matches
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue