Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jul 2000 13:53:00 +0200
From:      alex@big.endian.de (Alexander Langer)
To:        Will Andrews <andrews@TECHNOLOGIST.COM>
Cc:        Satoshi - Ports Wraith - Asami <asami@FreeBSD.ORG>, ports@FreeBSD.ORG
Subject:   refetch-functionality for bsd.port.mk
Message-ID:  <20000716135300.A68390@cichlids.cichlids.com>
In-Reply-To: <20000712065724.F1690@argon.gryphonsoft.com>; from andrews@TECHNOLOGIST.COM on Wed, Jul 12, 2000 at 06:57:24AM -0400
References:  <Pine.BSF.4.21.0007120534530.427-100000@turtle.looksharp.net> <xzpvgyb65g1.fsf@flood.ping.uio.no> <20000712055707.C1690@argon.gryphonsoft.com> <xzpn1jn64r2.fsf@flood.ping.uio.no> <20000712061459.D1690@argon.gryphonsoft.com> <xzpitub63in.fsf@flood.ping.uio.no> <20000712064405.E1690@argon.gryphonsoft.com> <xzpem4z62n0.fsf@flood.ping.uio.no> <20000712065724.F1690@argon.gryphonsoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thus spake Will Andrews (andrews@TECHNOLOGIST.COM):

> Great, thanks!  What do people think about making -r a default
> FETCH_BEFORE_ARGS argument?

Please see ports/12325 (one of my first PR's).

I think, the patch won't apply anymore, but you'll get the feeling how
things can work.

However, if you want to put your hands on it, please do the following:

After:
+                       ${ECHO_MSG} ">> Couldn't fetch it - please try to retrieve this";\
       +                       ${ECHO_MSG} ">> port manually into ${_DISTDIR} and try again."; \

add a "touch WRKDIR/.re-fetch.done" cookie.

And then, next time the port is fetched, it is looked, if that cookie
exists. If that is the case, there is no need to refetch.

Only if it doesn't exist, re-try fetching.

Why? Well, I've got some comments, that it should not retrieve again
and again, if it already tried to refetch some minutes/days/etc ago
(i.e. the file is not truncated, but just w/ a wrong checksum!).

Alex
-- 
cat: /home/alex/.sig: No such file or directory


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000716135300.A68390>