diff options
author | Lars Müller | 2007-04-15 22:31:28 +0200 |
---|---|---|
committer | Lars Müller | 2007-04-15 22:31:28 +0200 |
commit | ff8e62b64d5be4889c0f9a5c76b8688b78d982e0 (patch) | |
tree | 0e1f05d7f28601722b15c7bbb775fc9424e7ff20 /installer | |
parent | Add an OpenSLX spec file to allow builds of RPMs. (diff) | |
download | core-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-x | installer/slxbootstrap | 9 |
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 |