From 6d87f0dde3a22c9c49a727025913484e35819dbf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 7 Jan 2011 21:56:33 +0100 Subject: Adding derivatives handling for progress. --- functions/defaults.sh | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'functions') diff --git a/functions/defaults.sh b/functions/defaults.sh index 9e4f8415a..d8698d5d3 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -20,15 +20,24 @@ Set_defaults () # Setting distribution name case "${LB_MODE}" in progress) + _DERIVATIVE="true" + LB_DISTRIBUTION="${LB_DISTRIBUTION:-artax}" + LB_PARENT_DISTRIBUTION="${LB_PARENT_DISTRIBUTION:-squeeze}" ;; ubuntu) + _DERIVATIVE="false" + LB_DISTRIBUTION="${LB_DISTRIBUTION:-karmic}" + LB_PARENT_DISTRIBUTION="${LB_DISTRIBUTION}" ;; *) + _DERIVATIVE="false" + LB_DISTRIBUTION="${LB_DISTRIBUTION:-squeeze}" + LB_PARENT_DISTRIBUTION="${LB_DISTRIBUTION}" ;; esac @@ -431,6 +440,15 @@ Set_defaults () LB_MIRROR_DEBIAN_INSTALLER="${LB_MIRROR_DEBIAN_INSTALLER:-${LB_MIRROR_BOOTSTRAP}}" + if [ -z "${LB_REPOSITORIES}" ] + then + case "${LB_MODE}" in + progress) + LB_REPOSITORIES="progress-linux_${LB_DISTRIBUTION}" + ;; + esac + fi + # Setting archive areas value case "${LB_MODE}" in ubuntu) @@ -761,7 +779,7 @@ Set_defaults () esac # Setting debian-installer distribution - LB_DEBIAN_INSTALLER_DISTRIBUTION="${LB_DEBIAN_INSTALLER_DISTRIBUTION:-${LB_DISTRIBUTION}}" + LB_DEBIAN_INSTALLER_DISTRIBUTION="${LB_DEBIAN_INSTALLER_DISTRIBUTION:-${LB_PARENT_DISTRIBUTION}}" # Setting debian-installer-gui case "${LB_MODE}" in @@ -891,7 +909,7 @@ Set_defaults () # Setting win32-loader option case "${LB_MODE}" in progress|ubuntu) - :: + ;; *) -- cgit v1.2.3