[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#395262: choose-mirror: requires internet access to build



severity 395262 important
tags 395262 + patch
thanks

(setting severity to important since that's probably what you wanted to
do :-)

On 25/10/06 at 15:15 -0700, Steve Langasek wrote:
> tags 395262 important
> thanks
> 
> On Wed, Oct 25, 2006 at 11:28:45PM +0200, Lucas Nussbaum wrote:
> > Building choose-mirror seems to require network access, since it
> > retrieves a file found on cvs.d.o:
> > if [ "$ONLINE" != n ]; then \
> >   if wget -nv 'http://cvs.debian.org/*checkout*/webwml/english/mirror/Mirrors.masterlist?rev=HEAD&cvsroot=webwml&content-type=text/plain'
> > -O - > Mirrors.masterlist.new && \
> >     test -s Mirrors.masterlist.new; then \
> > 	mv Mirrors.masterlist.new Mirrors.masterlist; \
> >    else \
> >       rm -f Mirrors.masterlist.new; \
> >    fi; \
> > fi
> 
> This doesn't cause a build failure, because all errors are checked and a
> failure in wget is ignored.  Downgrading accordingly.
 
Agreed, but one problem with wget is that it tries extremly hard to
download files (retries 20 times by default, with a 900 seconds timeout
each time !).

I would recommend changing the wget call so that it runs wget
--timeout=60 --tries=2, which would be much more tolerable than waiting
for 20*900=18000 seconds.

Tagging +patch, even if this is just a workaround to make the situation
slightly better.
-- 
| Lucas Nussbaum
| lucas@lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lucas@nussbaum.fr             GPG: 1024D/023B3F4F |



Reply to: