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 |