summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_localization
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:51 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:18:29 +0100
commit8a4a50fdb6b206fbff62fd3043ed388f25a0ffb1 (patch)
tree621dc56a00a65ab0eb1fd4e7d42ad4e45d718741 /helpers/lh_chroot_localization
parent4739146fc6c4de8b16418517bb882312c475195c (diff)
downloadlive-build-8a4a50fdb6b206fbff62fd3043ed388f25a0ffb1.zip
live-build-8a4a50fdb6b206fbff62fd3043ed388f25a0ffb1.tar.gz
Adding live-helper 1.0~a7-1.
Diffstat (limited to 'helpers/lh_chroot_localization')
-rwxr-xr-xhelpers/lh_chroot_localization40
1 files changed, 7 insertions, 33 deletions
diff --git a/helpers/lh_chroot_localization b/helpers/lh_chroot_localization
index 4abaf2d..f81661d 100755
--- a/helpers/lh_chroot_localization
+++ b/helpers/lh_chroot_localization
@@ -635,45 +635,27 @@ then
do
case "${LOCALZATION}" in
iceape)
- if [ -f chroot/usr/bin/iceape ]
- then
- PACKAGES="${PACKAGES} iceweasel-l10n-${ICEAPE}"
- fi
+ Check_package chroot/usr/bin/iceape iceweasel-l10n-"${ICEAPE}"
;;
icedove)
- if [ -f chroot/usr/bin/icedove ]
- then
- PACKAGES="${PACKAGES} icedove-locale-${ICEDOVE}"
- fi
+ Check_package chroot/usr/bin/icedove icedove-locale-"${ICEDOVE}"
;;
iceweasel)
- if [ -f chroot/usr/bin/iceweasel ]
- then
- PACKAGES="${PACKAGES} iceweasel-l10n-${ICEWEASEL}"
- fi
+ Check_package chroot/usr/bin/iceweasel iceweasel-l10n-"${ICEWEASEL}"
;;
kde)
- if [ -f chroot/usr/bin/kstart ]
- then
- PACKAGES="${PACKAGES} kde-i18n-${KDE}"
- fi
+ Check_package chroot/usr/bin/kstart kde-i18n-"${KDE}"
;;
koffice)
- if [ -f chroot/usr/bin/usr/bin/koconverter ]
- then
- PACKAGES="${PACKAGES} koffice-i18n-${KOFFICE}"
- fi
+ Check_package chroot/usr/bin/usr/bin/koconverter koffice-i18n-"${KOFFICE}"
;;
openoffice)
- if [ -f chroot/usr/bin/ooffice ]
- then
- PACKAGES="${PACKAGES} openoffice.org-l10n-${OPENOFFICE}"
- fi
+ Check_package chroot/usr/bin/ooffice openoffice.org-l10n-"${OPENOFFICE}"
;;
esac
done
@@ -682,15 +664,7 @@ then
Restore_cache cache/chroot_localization
# Installing packages
- case "${LH_APT}" in
- apt|apt-get)
- Chroot "apt-get install --yes ${PACKAGES}"
- ;;
-
- aptitude)
- Chroot "apt-get install --assume-yes ${PACKAGES}"
- ;;
- esac
+ Install_package
# Saving cache
Save_cache cache/chroot_localization