searchall: filter out "Index of"
"Index of" pages do not contain list of files, only list of packages.
This commit is contained in:
parent
29cd84482b
commit
b11ab2daa5
6
apt-cyg
6
apt-cyg
|
@ -338,12 +338,12 @@ proxy () {
|
|||
}
|
||||
|
||||
apt-searchall () {
|
||||
local api nof
|
||||
local api nof ste
|
||||
api=ajax.googleapis.com/ajax/services/search/web
|
||||
ste=cygwin.com/cygwin/packages
|
||||
for pkg in "${packages[@]}"
|
||||
do
|
||||
printf \
|
||||
-v qs 'v=1.0&rsz=8&q="%s"+site:cygwin.com/cygwin/packages/%s' $pkg $ARCH
|
||||
printf -v qs 'v=1.0&rsz=8&q="%s"+-"index of"+site:%s/%s' $pkg $ste $ARCH
|
||||
(( nof++ )) && echo
|
||||
echo getting pages . . .
|
||||
proxy "$api?$qs"
|
||||
|
|
Loading…
Reference in New Issue