From owner-freebsd-ports Thu Jan 2 14:40:35 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AF6937B401 for ; Thu, 2 Jan 2003 14:40:34 -0800 (PST) Received: from analog.databits.net (analog.databits.net [198.78.65.155]) by mx1.FreeBSD.org (Postfix) with SMTP id 12A4043ED1 for ; Thu, 2 Jan 2003 14:40:34 -0800 (PST) (envelope-from petef@analog.databits.net) Received: (qmail 90286 invoked by uid 1000); 2 Jan 2003 22:37:43 -0000 Date: Thu, 2 Jan 2003 14:37:43 -0800 From: Pete Fritchman To: "C. A. Daelhousen" Cc: freebsd-ports@freebsd.org Subject: Re: Feature request: make ports resume download of truncated distfiles Message-ID: <20030102223743.GB46582@absolutbsd.org> References: <20030102201238.GB176@selvirjin.alltel.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030102201238.GB176@selvirjin.alltel.net> User-Agent: Mutt/1.4i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org ++ 02/01/03 15:12 -0500 - C. A. Daelhousen: | Firstly, I apologize if this was discussed already. I tried searching | the mailing list archive and open PRs, but didn't see anything about | this topic. Maybe a PR should be opened on the subject then :-) | The problem is apparently with 'do-fetch' in bsd.port.mk: the condition | for fetch complete is the existence of an appropriate filename in | distfiles, based on the (invalid) assumption that the file will only be | there if completely fetched. Maybe I am completely missing something, but how would we be able to tell if a distfile is truncated, or if there actually *is* a checksum mismatch (and the file was completely downloaded)? If we can figure out a way to tell if a distfile is truncated, then I think this would be a great feature to have. Or maybe we introduce a variable RESUME_DOWNLOAD to tell ports that it was a partial fetch. For example, if I am on a dialup, I might need to ^C the fetch to use a phone line, then I could make -DRESUME_DOWNLOAD. Or maybe we can do the fetch to a temp directory (/usr/ports/distfiles/downloading/ or something), and after fetch(1) completes move the distfile into the appropriate ${DISTDIR}. That way we would be able to tell if fetch(1) finished or the user interrupted it. What do others think? --pete To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message