Gentoo Archives: gentoo-portage-dev

From: Thomas Horsten <thomas@×××××××.com>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] emerge feature request: Downloads managed by lock file system
Date: Sun, 08 Feb 2004 00:59:22
Message-Id: 200402080059.14318.thomas@horsten.com
In Reply to: Re: [gentoo-portage-dev] emerge feature request: Downloads managed by lock file system by Jeff Smelser
1 On Saturday 07 February 2004 22:07, Jeff Smelser wrote:
2 > On Saturday 07 February 2004 11:17 am, Sven Vermeulen wrote:
3 > > A quick 'n dirty hack in the FETCHCOMMAND should suffice. Something along
4 > > the lines of (pseudocode):
5 > >
6 > > FETCHCOMMAND="if exists \${DISTDIR}/`basename \${URL}.lck`; then skip;
7 > > else \ touch \${DISTDIR}/`basename \${URL}.lck`; \
8 > > /usr/bin/wget ...; \
9 > > rm \${DISTDIR}/`basename \${URL}.lck`; fi"
10 >
11 > I tried this, and got:
12 >[..] Errors
13
14 Notice that Sven said it's pseudocode, just to describe the concept. It's
15 incomplete, and has an invalid syntax. For example, "if exists ..." should be
16 "if [ -e ...]" to be proper sh code.
17
18 The real thing would be a bit more complex.
19
20 // Thomas
21
22
23 --
24 gentoo-portage-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-portage-dev] emerge feature request: Downloads managed by lock file system Roman Gaufman <hackeron@×××××××××.com>