diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:40 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:40 +0200 |
commit | 6f5e2da03e5fd1af2200d2f55ca84647bc8d3626 (patch) | |
tree | e2a861c1995eea707b2ac1c72930351191714493 /helpers/lh_installapt | |
parent | 9a9491318d4a0469e4c97b28879ab34391c39095 (diff) | |
download | live-build-6f5e2da03e5fd1af2200d2f55ca84647bc8d3626.zip live-build-6f5e2da03e5fd1af2200d2f55ca84647bc8d3626.tar.gz |
Adding live-package 0.99.22-1.
Diffstat (limited to 'helpers/lh_installapt')
-rwxr-xr-x | helpers/lh_installapt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/helpers/lh_installapt b/helpers/lh_installapt new file mode 100755 index 0000000..5324402 --- /dev/null +++ b/helpers/lh_installapt @@ -0,0 +1,32 @@ +#!/bin/sh + +# lh_installapt + +# Install aptitude +lh_chroot "apt-get install --yes --force-yes aptitude" + +# Install secure apt +if [ "${LIVE_DISTRIBUTION}" = "unstable" ] || [ "${LIVE_DISTRIBUTION}" = "${CODENAME_UNSTABLE}" ] || \ +[ "${LIVE_DISTRIBUTION}" = "testing" ] || [ "${LIVE_DISTRIBUTION}" = "${CODENAME_TESTING}" ] +then + if [ "${LIVE_FLAVOUR}" != "minimal" ] || [ "${LIVE_FLAVOUR}" != "mini" ] + then + lh_chroot "apt-get install --yes --force-yes ${LIVE_REPOSITORY_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 + lh_chroot "aptiude install ${REPOSITORY_KEYRING}" + elif [ -n "${REPOSITORY_KEY}" ] + then + lh_chroot "wget ${REPOSITORY_KEY}" + lh_chroot "apt-key add `basename ${REPOSITORY_KEY}`" + lh_chroot "rm -f `basename ${REPOSITORY_KEY}`" + fi + done + fi +fi |