From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32074 invoked from network); 8 Feb 2004 00:59:22 +0000 Received: from smtp.gentoo.org (128.193.0.39) by eagle.gentoo.oregonstate.edu with DES-CBC3-SHA encrypted SMTP; 8 Feb 2004 00:59:22 +0000 Received: from lists.gentoo.org ([128.193.0.34] helo=eagle.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.24) id 1ApdI8-0002Fo-LP for arch-gentoo-portage-dev@lists.gentoo.org; Sun, 08 Feb 2004 00:59:20 +0000 Received: (qmail 25699 invoked by uid 50004); 8 Feb 2004 00:59:19 +0000 Mailing-List: contact gentoo-portage-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail Reply-To: gentoo-portage-dev@lists.gentoo.org X-BeenThere: gentoo-portage-dev@gentoo.org Received: (qmail 3590 invoked from network); 8 Feb 2004 00:59:19 +0000 From: Thomas Horsten To: gentoo-portage-dev@lists.gentoo.org Date: Sun, 8 Feb 2004 00:59:14 +0000 User-Agent: KMail/1.5.4 References: <200402071318.47224.thomas@horsten.com> <20040207171757.GA16817@gentoo.org> <200402071607.27581.tradergt@smelser.org> In-Reply-To: <200402071607.27581.tradergt@smelser.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200402080059.14318.thomas@horsten.com> Subject: Re: [gentoo-portage-dev] emerge feature request: Downloads managed by lock file system X-Archives-Salt: 62f91cd5-4850-49be-ba03-c306c7f2b719 X-Archives-Hash: d7ee47f21658e9959ce56166fea518fe On Saturday 07 February 2004 22:07, Jeff Smelser wrote: > On Saturday 07 February 2004 11:17 am, Sven Vermeulen wrote: > > A quick 'n dirty hack in the FETCHCOMMAND should suffice. Something along > > the lines of (pseudocode): > > > > FETCHCOMMAND="if exists \${DISTDIR}/`basename \${URL}.lck`; then skip; > > else \ touch \${DISTDIR}/`basename \${URL}.lck`; \ > > /usr/bin/wget ...; \ > > rm \${DISTDIR}/`basename \${URL}.lck`; fi" > > I tried this, and got: >[..] Errors Notice that Sven said it's pseudocode, just to describe the concept. It's incomplete, and has an invalid syntax. For example, "if exists ..." should be "if [ -e ...]" to be proper sh code. The real thing would be a bit more complex. // Thomas -- gentoo-portage-dev@gentoo.org mailing list