makedist.inc.sh: support for enabling additional smart repositories (ported from openmamba-milestone2)

This commit is contained in:
Silvan Calarco 2012-12-06 16:44:52 +01:00
parent 14d91caa9a
commit aff6c840d0

View File

@ -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