[PATCH] Respect if LH_DEBIAN_INSTALLER_URL is already set in helpers/binary_debian-installer
Hello,
Please accept this simple patch which updates helpers/binary_debian-installer to respect if LH_DEBIAN_INSTALLER_URL is already set and if so use it directly as the url to the debian installer images instead of live-helper automatically composing the url its self. This is to permit an advanced user to override live-helper and tell it to point at some arbitrary location to fetch d-i images. Since this is a rare use case for most users, I've abstained from further complicating lh_config and the config files (for now at least) - hopefully this is okay with you as well.
Cheers,
--
Cody A.W. Somerville
Release Engineer
Foundations Team
Custom Engineering Solutions Group
Canonical OEM Services
Phone: +1 781 850 2087
Cell: +1 613 401 5141
Fax: +1 613 687 7368
Email: cody.somerville@canonical.com
=== modified file 'helpers/binary_debian-installer'
--- helpers/binary_debian-installer 2010-04-09 19:28:42 +0000
+++ helpers/binary_debian-installer 2010-05-20 02:19:01 +0000
@@ -225,7 +243,10 @@
INITRD_GI="gtk/initrd.gz"
DESTDIR_GI="${DESTDIR}/gtk"
-if [ "${LH_DEBIAN_INSTALLER_DISTRIBUTION}" = "daily" ]
+if [ -n "${LH_DEBIAN_INSTALLER_URL}" ]
+then
+ URL="${LH_DEBIAN_INSTALLER_URL}"
+elif [ "${LH_DEBIAN_INSTALLER_DISTRIBUTION}" = "daily" ]
then
LH_DEBIAN_INSTALLER_DISTRIBUTION="sid"
Reply to: