summaryrefslogtreecommitdiff
path: root/src/scripts/14chroot.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:23 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:04:23 +0200
commitfe7102be0cfa4b23ac583055dfdfc6241fd61179 (patch)
treec0c6a227fe360e30dc3cb6042d9180330994e238 /src/scripts/14chroot.sh
parent873a8ac3d1221f47f695c8d89a63370296afffda (diff)
downloadlive-build-fe7102be0cfa4b23ac583055dfdfc6241fd61179.zip
live-build-fe7102be0cfa4b23ac583055dfdfc6241fd61179.tar.gz
Adding live-package 0.99.9-1.
Diffstat (limited to 'src/scripts/14chroot.sh')
-rw-r--r--src/scripts/14chroot.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/scripts/14chroot.sh b/src/scripts/14chroot.sh
index 356c1a2..e264128 100644
--- a/src/scripts/14chroot.sh
+++ b/src/scripts/14chroot.sh
@@ -36,6 +36,22 @@ Chroot ()
if [ "${LIVE_FLAVOUR}" != "minimal" ]
then
Chroot_exec "apt-get install --yes --force-yes debian-archive-keyring"
+
+ for NAME in ${LIVE_REPOSITORIES}
+ do
+ eval REPOSITORY_KEY="$`echo LIVE_REPOSITORY_KEY_$NAME`"
+ eval REPOSITORY_KEYRING="$`echo LIVE_REPOSITORY_KEYRING_$NAME`"
+
+ if [ -n "${REPOSITORY_KEYRING}" ]
+ then
+ Chroot_exec "apt-get install ${REPOSITORY_KEYRING}"
+ elif [ -n "${REPOSITORY_KEY}" ]
+ then
+ Chroot_exec "wget ${REPOSITORY_KEY}"
+ Chroot_exec "apt-key add `basename ${REPOSITORY_KEY}`"
+ Chroot_exec "rm -f `basename ${REPOSITORY_KEY}`"
+ fi
+ done
fi
fi