Mercurial > hg > aboriginal
comparison sources/functions.sh @ 647:6886c9fcb89b
Add download RENAME support and make squashfs use it to give a packagename-version filename like all the others.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 24 Mar 2009 17:01:41 -0500 |
parents | 4db8fc1ea338 |
children | 1fa9eb882e3b |
comparison
equal
deleted
inserted
replaced
646:0f8659ab466f | 647:6886c9fcb89b |
---|---|
191 function download() | 191 function download() |
192 { | 192 { |
193 FILENAME=`echo "$URL" | sed 's .*/ '` | 193 FILENAME=`echo "$URL" | sed 's .*/ '` |
194 ALTFILENAME=alt-"$(noversion "$FILENAME" -0)" | 194 ALTFILENAME=alt-"$(noversion "$FILENAME" -0)" |
195 | 195 |
196 # Handle RENAME support | |
197 | |
198 [ -z "$RENAME" ] || FILENAME="$(echo "$FILENAME" | sed -r "$RENAME")" | |
199 | |
196 echo -ne "checking $FILENAME\r" | 200 echo -ne "checking $FILENAME\r" |
197 | 201 |
198 # Is the unstable version selected? | 202 # Is the unstable version selected? |
199 if unstable "$(basename "$FILENAME")" | 203 if unstable "$(basename "$FILENAME")" |
200 then | 204 then |