diff options
author | Daniel Baumann <daniel@debian.org> | 2007-10-19 12:45:57 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2007-10-19 12:45:57 +0200 |
commit | 979cd28cc41c7eb6284f001922de51d17fd8538d (patch) | |
tree | d7daee58758e59b30ae468c281610c3a00bcf469 /helpers/lh_chroot_sources | |
parent | 29cbc991eb41368d4198d69ce5ae69f06dd058e3 (diff) | |
download | vyos-live-build-979cd28cc41c7eb6284f001922de51d17fd8538d.tar.gz vyos-live-build-979cd28cc41c7eb6284f001922de51d17fd8538d.zip |
Removing ubuntu support.
Diffstat (limited to 'helpers/lh_chroot_sources')
-rwxr-xr-x | helpers/lh_chroot_sources | 60 |
1 files changed, 17 insertions, 43 deletions
diff --git a/helpers/lh_chroot_sources b/helpers/lh_chroot_sources index 61e0b66d7..632daf6e7 100755 --- a/helpers/lh_chroot_sources +++ b/helpers/lh_chroot_sources @@ -59,28 +59,15 @@ case "${1}" in if [ "${LH_SECURITY}" = "enabled" ] then - case "${LH_MODE}" in - debian) - if [ "${LH_DISTRIBUTION}" != "sid" ] && [ "${LH_DISTRIBUTION}" != "unstable" ] - then - echo "deb ${LH_MIRROR_BOOTSTRAP_SECURITY} ${LH_DISTRIBUTION}/updates ${LH_SECTIONS}" >> chroot/etc/apt/sources.list - - if [ "${LH_SOURCE}" = "enabled" ] - then - echo "deb-src ${LH_MIRROR_BOOTSTRAP_SECURITY} ${LH_DISTRIBUTION}/updates ${LH_SECTIONS}" >> chroot/etc/apt/sources.list - fi - fi - ;; - - ubuntu) - echo "deb ${LH_MIRROR_BOOTSTRAP_SECURITY} ${LH_DISTRIBUTION}-security ${LH_SECTIONS}" >> chroot/etc/apt/sources.list + if [ "${LH_DISTRIBUTION}" != "sid" ] && [ "${LH_DISTRIBUTION}" != "unstable" ] + then + echo "deb ${LH_MIRROR_BOOTSTRAP_SECURITY} ${LH_DISTRIBUTION}/updates ${LH_SECTIONS}" >> chroot/etc/apt/sources.list - if [ "${LH_SOURCE}" = "enabled" ] - then - echo "deb-src ${LH_MIRROR_BOOTSTRAP_SECURITY} ${LH_DISTRIBUTION}-security ${LH_SECTIONS}" >> chroot/etc/apt/sources.list - fi - ;; - esac + if [ "${LH_SOURCE}" = "enabled" ] + then + echo "deb-src ${LH_MIRROR_BOOTSTRAP_SECURITY} ${LH_DISTRIBUTION}/updates ${LH_SECTIONS}" >> chroot/etc/apt/sources.list + fi + fi fi # Check local sources.list @@ -237,28 +224,15 @@ case "${1}" in if [ "${LH_SECURITY}" = "enabled" ] then - case "${LH_MODE}" in - debian) - if [ "${LH_DISTRIBUTION}" != "sid" ] && [ "${LH_DISTRIBUTION}" != "unstable" ] - then - echo "deb ${LH_MIRROR_BINARY_SECURITY} ${LH_DISTRIBUTION}/updates ${LH_SECTIONS}" >> chroot/etc/apt/sources.list - - if [ "${LH_SOURCE}" = "enabled" ] - then - echo "deb-src ${LH_MIRROR_BINARY_SECURITY} ${LH_DISTRIBUTION}/updates ${LH_SECTIONS}" >> chroot/etc/apt/sources.list - fi - fi - ;; - - ubuntu) - echo "deb ${LH_MIRROR_BINARY_SECURITY} ${LH_DISTRIBUTION}-security ${LH_SECTIONS}" >> chroot/etc/apt/sources.list - - if [ "${LH_SOURCE}" = "enabled" ] - then - echo "deb-src ${LH_MIRROR_BINARY_SECURITY} ${LH_DISTRIBUTION}-security ${LH_SECTIONS}" >> chroot/etc/apt/sources.list - fi - ;; - esac + if [ "${LH_DISTRIBUTION}" != "sid" ] && [ "${LH_DISTRIBUTION}" != "unstable" ] + then + echo "deb ${LH_MIRROR_BINARY_SECURITY} ${LH_DISTRIBUTION}/updates ${LH_SECTIONS}" >> chroot/etc/apt/sources.list + + if [ "${LH_SOURCE}" = "enabled" ] + then + echo "deb-src ${LH_MIRROR_BINARY_SECURITY} ${LH_DISTRIBUTION}/updates ${LH_SECTIONS}" >> chroot/etc/apt/sources.list + fi + fi fi # Check local sources.list |