summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorLars Müller2007-04-15 22:31:28 +0200
committerLars Müller2007-04-15 22:31:28 +0200
commitff8e62b64d5be4889c0f9a5c76b8688b78d982e0 (patch)
tree0e1f05d7f28601722b15c7bbb775fc9424e7ff20 /installer
parentAdd an OpenSLX spec file to allow builds of RPMs. (diff)
downloadcore-ff8e62b64d5be4889c0f9a5c76b8688b78d982e0.tar.gz
core-ff8e62b64d5be4889c0f9a5c76b8688b78d982e0.tar.xz
core-ff8e62b64d5be4889c0f9a5c76b8688b78d982e0.zip
Do not construct the URL is the file is prefixed with {ftp,http}://.
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@897 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/slxbootstrap9
1 files changed, 8 insertions, 1 deletions
diff --git a/installer/slxbootstrap b/installer/slxbootstrap
index 6dcc2622..f240ef0f 100755
--- a/installer/slxbootstrap
+++ b/installer/slxbootstrap
@@ -13,7 +13,14 @@ test "${SLX_INST_SOURCE_PACKAGE_SUBDIR}" && \
SLX_INST_SOURCE_PACKAGE_SUBDIR="/${SLX_INST_SOURCE_PACKAGE_SUBDIR}"
download_file () {
- wget "${SLX_INST_SOURCE_BASEURL}${SLX_INST_SOURCE_PACKAGE_SUBDIR}/${file}"
+ case ${file} in
+ ftp://*|http://*)
+ wget "${file}"
+ ;;
+ *)
+ wget "${SLX_INST_SOURCE_BASEURL}${SLX_INST_SOURCE_PACKAGE_SUBDIR}/${file}"
+ ;;
+ esac
if test $? != 0; then
if test "${SLX_BOOTSTRAP_FAIL_WGET}" = "no"; then
continue