summaryrefslogtreecommitdiff
path: root/helpers/chroot_sources
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-03-06 17:23:59 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:04 +0100
commit17c5ed64b269b2bff7f30448699266c69885a3d2 (patch)
treef518a6cb4d6990d299957906361c04b4773b4247 /helpers/chroot_sources
parent54518852c8c69eafe56aa68d13c8dfdfc8fc30ea (diff)
downloadvyos-live-build-17c5ed64b269b2bff7f30448699266c69885a3d2.tar.gz
vyos-live-build-17c5ed64b269b2bff7f30448699266c69885a3d2.zip
Adding support for debian-volatile archive.
Diffstat (limited to 'helpers/chroot_sources')
-rwxr-xr-xhelpers/chroot_sources26
1 files changed, 26 insertions, 0 deletions
diff --git a/helpers/chroot_sources b/helpers/chroot_sources
index 16adf89d1..cb046d9ea 100755
--- a/helpers/chroot_sources
+++ b/helpers/chroot_sources
@@ -75,6 +75,19 @@ case "${1}" in
esac
fi
+ if [ "${LH_VOLATILE}" = "true" ]
+ then
+ if [ "${LH_DISTRIBUTION}" != "sid" ] && [ "${LH_DISTRIBUTION}" != "unstable" ]
+ then
+ echo "deb ${LH_MIRROR_CHROOT_VOLATILE} ${LH_DISTRIBUTION}/volatile ${LH_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list
+
+ if [ "${LH_SOURCE}" = "true" ]
+ then
+ echo "deb-src ${LH_MIRROR_CHROOT_VOLATILE} ${LH_DISTRIBUTION}/volatile ${LH_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list
+ fi
+ fi
+ fi
+
# Check local sources.list
if Find_files config/chroot_sources/*.chroot
then
@@ -401,6 +414,19 @@ case "${1}" in
esac
fi
+ if [ "${LH_VOLATILE}" = "true" ]
+ then
+ if [ "${LH_DISTRIBUTION}" != "sid" ] && [ "${LH_DISTRIBUTION}" != "unstable" ]
+ then
+ echo "deb ${LH_MIRROR_BINARY_VOLATILE} ${LH_DISTRIBUTION}/volatile ${LH_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list
+
+ if [ "${LH_SOURCE}" = "true" ]
+ then
+ echo "deb-src ${LH_MIRROR_BINARY_VOLATILE} ${LH_DISTRIBUTION}/volatile ${LH_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list
+ fi
+ fi
+ fi
+
# Check local sources.list
if Find_files config/chroot_sources/*.binary
then