Mercurial > hg > aboriginal
comparison sources/functions.sh @ 777:879353d1cfba
Update timestamp on freshly downloaded files so cleanup doesn't delete them.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 02 Jul 2009 16:23:39 -0500 |
parents | 37c083cca810 |
children | e373d2b6d0b8 |
comparison
equal
deleted
inserted
replaced
776:37c083cca810 | 777:879353d1cfba |
---|---|
257 | 257 |
258 if [ -n "$1" ] | 258 if [ -n "$1" ] |
259 then | 259 then |
260 wget -t 2 -T 20 -O "$SRCDIR/$FILENAME" "$1" || | 260 wget -t 2 -T 20 -O "$SRCDIR/$FILENAME" "$1" || |
261 (rm "$SRCDIR/$FILENAME"; return 2) | 261 (rm "$SRCDIR/$FILENAME"; return 2) |
262 touch -c "$SRCDIR/$FILENAME" | |
262 fi | 263 fi |
263 | 264 |
264 try_checksum | 265 try_checksum |
265 } | 266 } |
266 | 267 |