From: Otavio Salvador <[EMAIL PROTECTED]>

A new LIVE_SECTIONS variable has been introduced to allow change 
the sections to be used when building the chroot and like. Previously,
a LIVE_SECTION variable was use for same propouse.

This patch adds backward compatibility while also prints a warning to
advice the user to change to the new way.

Signed-off-by: Otavio Salvador <[EMAIL PROTECTED]>
---

 src/scripts/02defaults.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/scripts/02defaults.sh b/src/scripts/02defaults.sh
index 49499c9..5ed5509 100644
--- a/src/scripts/02defaults.sh
+++ b/src/scripts/02defaults.sh
@@ -262,6 +262,12 @@ Defaults ()
                fi
        fi
 
+       # Backward compatibility
+       if [ -n "${LIVE_SECTION}" ]; then
+               LIVE_SECTIONS=$LIVE_SECTION
+               echo "WARNING: LIVE_SECTION option is deprecated. Change it to 
LIVE_SECTIONS."
+       fi
+       
        # Set debian sections
        if [ -z "${LIVE_SECTIONS}" ]
        then

_______________________________________________
Debian-live-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel

Reply via email to