summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_symlinks
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_symlinks
parent4739146fc6c4de8b16418517bb882312c475195c (diff)
downloadlive-build-8a4a50fdb6b206fbff62fd3043ed388f25a0ffb1.zip
live-build-8a4a50fdb6b206fbff62fd3043ed388f25a0ffb1.tar.gz
Adding live-helper 1.0~a7-1.
Diffstat (limited to 'helpers/lh_chroot_symlinks')
-rwxr-xr-xhelpers/lh_chroot_symlinks38
1 files changed, 7 insertions, 31 deletions
diff --git a/helpers/lh_chroot_symlinks b/helpers/lh_chroot_symlinks
index e574480..2aef0df 100755
--- a/helpers/lh_chroot_symlinks
+++ b/helpers/lh_chroot_symlinks
@@ -47,41 +47,17 @@ Create_lockfile .lock
if [ "${LIVE_SYMLINKS}" = "enabled" ]
then
- if [ -f chroot/usr/bin/symlinks ]
- then
- SYMLINKS="true"
- fi
-
- if [ -n "${SYMLINKS}" ]
- then
- # Installing symlinks
- case "${LH_APT}" in
- apt|apt-get)
- Chroot "apt-get install --yes symlinks"
- ;;
-
- aptitude)
- Chroot "aptitude install --assume-yes symlinks"
- ;;
- esac
- fi
+ # Checking depends
+ Check_package chroot/usr/bin/symlinks symlinks
+
+ # Installing depends
+ Install_package
# Converting symlinks
Chroot "symlinks -c -r -s /"
- if [ -n "${SYMLINKS}" ]
- then
- # Removing symlinks
- case "${LH_APT}" in
- apt|apt-get)
- Chroot "apt-get remove --purge --yes symlinks"
- ;;
-
- aptitude)
- Chroot "aptitude purge --assume-yes symlinks"
- ;;
- esac
- fi
+ # Removing depends
+ Remove_package
# Creating stage file
Create_stagefile .stage/chroot_symlinks