From aff6c840d0ca8cf6e8b10aaf9eb6ff315203a9bc Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 6 Dec 2012 16:44:52 +0100 Subject: [PATCH] makedist.inc.sh: support for enabling additional smart repositories (ported from openmamba-milestone2) --- makedist.inc.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/makedist.inc.sh b/makedist.inc.sh index 233b048..b8c63fd 100644 --- a/makedist.inc.sh +++ b/makedist.inc.sh @@ -164,4 +164,12 @@ rm -rf $MOUNTDIR/tmp/kde-root [ "$LANGUAGE" -a -e $TARGETDIR/platforms/$PLATFORM/root-$LANGUAGE ] && cp -a --no-preserve=ownership $TARGETDIR/platforms/$PLATFORM/root-$LANGUAGE/* $MOUNTDIR/ +# enable additional smart repositories +if [ "$SMART_CHANNELS_ENABLE" != "" ]; then + for r in $SMART_CHANNELS_ENABLE; do + chroot $MOUNTDIR smart channel --enable $r + done + echo "$SMART_CHANNELS_ENABLE" > $MOUNTDIR/etc/smart/openmamba-install-enabled-channels +fi + produce_media