Handling live.debian.net repository differently, so that ubuntu people can use it too.
This commit is contained in:
parent
308b639080
commit
36f220320a
|
@ -151,6 +151,14 @@ EOF
|
||||||
then
|
then
|
||||||
for REPOSITORY in ${LB_REPOSITORIES}
|
for REPOSITORY in ${LB_REPOSITORIES}
|
||||||
do
|
do
|
||||||
|
# ubuntu workaround to allow using live.debian.net
|
||||||
|
if [ "${LB_MODE}" = "ubuntu" ] && [ "${REPOSITORY}" = "live.debian.net" ]
|
||||||
|
then
|
||||||
|
_DISTRIBUTION="sid"
|
||||||
|
else
|
||||||
|
_DISTRIBUTION="${LB_DISTRIBUTION}"
|
||||||
|
fi
|
||||||
|
|
||||||
for PLACE in config/repositories "${LB_BASE}/repositories"
|
for PLACE in config/repositories "${LB_BASE}/repositories"
|
||||||
do
|
do
|
||||||
# Prefer repositories from the config tree
|
# Prefer repositories from the config tree
|
||||||
|
@ -163,13 +171,13 @@ EOF
|
||||||
# Adding sources.list entries (chroot)
|
# Adding sources.list entries (chroot)
|
||||||
if [ -e "${PLACE}/${REPOSITORY}.chroot" ]
|
if [ -e "${PLACE}/${REPOSITORY}.chroot" ]
|
||||||
then
|
then
|
||||||
sed -e "s|@DISTRIBUTION@|${LB_DISTRIBUTION}|g" \
|
sed -e "s|@DISTRIBUTION@|${_DISTRIBUTION}|g" \
|
||||||
-e "s|@ARCHIVE_AREAS@|${LB_ARCHIVE_AREAS}|g" \
|
-e "s|@ARCHIVE_AREAS@|${LB_ARCHIVE_AREAS}|g" \
|
||||||
"${PLACE}/${REPOSITORY}.chroot" > \
|
"${PLACE}/${REPOSITORY}.chroot" > \
|
||||||
"chroot/etc/apt/sources.list.d/${REPOSITORY}.list"
|
"chroot/etc/apt/sources.list.d/${REPOSITORY}.list"
|
||||||
elif [ -e "${PLACE}/${REPOSITORY}" ]
|
elif [ -e "${PLACE}/${REPOSITORY}" ]
|
||||||
then
|
then
|
||||||
sed -e "s|@DISTRIBUTION@|${LB_DISTRIBUTION}|g" \
|
sed -e "s|@DISTRIBUTION@|${_DISTRIBUTION}|g" \
|
||||||
-e "s|@ARCHIVE_AREAS@|${LB_ARCHIVE_AREAS}|g" \
|
-e "s|@ARCHIVE_AREAS@|${LB_ARCHIVE_AREAS}|g" \
|
||||||
"${PLACE}/${REPOSITORY}" > \
|
"${PLACE}/${REPOSITORY}" > \
|
||||||
"chroot/etc/apt/sources.list.d/${REPOSITORY}.list"
|
"chroot/etc/apt/sources.list.d/${REPOSITORY}.list"
|
||||||
|
|
Loading…
Reference in New Issue