Date: Mon, 16 May 2011 10:11:07 +0300 From: Andriy Gapon <avg@FreeBSD.org> To: ports@FreeBSD.org Subject: Re: patch for force fetch Message-ID: <4DD0CE0B.80509@FreeBSD.org> In-Reply-To: <4DD0CC21.5050305@FreeBSD.org> References: <4DD0CC21.5050305@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
on 16/05/2011 10:02 Andriy Gapon said the following: > The following patch simply tries to remove the stale distfile before calling > fetch. Maybe there is a smarter way about this, like e.g. passing some option > to fetch. Sorry, that patch had incorrect syntax, here is a better patch: --- /usr/ports/Mk/bsd.port.mk.orig 2011-05-16 09:53:49.461968872 +0300 +++ /usr/ports/Mk/bsd.port.mk 2011-05-16 10:08:30.070979546 +0300 @@ -3562,6 +3562,9 @@ ${ECHO_MSG} "=> ${DISTDIR} is not writable by you; cannot fetch."; \ exit 1; \ fi; \ + if [ "$$force_fetch" = "true" ]; then \ + rm -f $$file $$filebasename; \ + fi; \ if [ ! -z "$$select" ] ; then \ __MASTER_SITES_TMP= ; \ for group in $$select; do \ -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DD0CE0B.80509>