changeset 683:3c09987974c8

Allow UNSTABLE=squashfs to download cvs snapshot with 4.0 support (but still not equivalent to genext2fs -D or gen_cpio_init's text file input, for creating /dev/console without root access).
author Rob Landley <rob@landley.net>
date Tue, 31 Mar 2009 14:43:11 -0500
parents d79f936c8f42
children 222886c9b3f5
files download.sh sources/functions.sh
diffstat 2 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/download.sh	Tue Mar 31 06:40:41 2009 -0500
+++ b/download.sh	Tue Mar 31 14:43:11 2009 -0500
@@ -117,6 +117,7 @@
 URL=http://downloads.sourceforge.net/squashfs/squashfs3.4.tar.gz \
 SHA1=6933a8f3098d94f93ec4002a54026b15a6e11640 \
 RENAME="s/(squashfs)(.*)/\1-\2/" \
+UNSTABLE=http://impactlinux.com/fwl/mirror/squashfs4.0_pre20090324.tar.gz \
 download || dienow
 
 # Todo:
--- a/sources/functions.sh	Tue Mar 31 06:40:41 2009 -0500
+++ b/sources/functions.sh	Tue Mar 31 14:43:11 2009 -0500
@@ -198,12 +198,9 @@
 function download()
 {
   FILENAME=`echo "$URL" | sed 's .*/  '`
+  [ -z "$RENAME" ] || FILENAME="$(echo "$FILENAME" | sed -r "$RENAME")"
   ALTFILENAME=alt-"$(noversion "$FILENAME" -0)"
 
-  # Handle RENAME support
-
-  [ -z "$RENAME" ] || FILENAME="$(echo "$FILENAME" | sed -r "$RENAME")"
-
   echo -ne "checking $FILENAME\r"
 
   # Is the unstable version selected?