summaryrefslogtreecommitdiff
path: root/scripts/build/lb_chroot_apt
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/lb_chroot_apt')
-rwxr-xr-xscripts/build/lb_chroot_apt20
1 files changed, 13 insertions, 7 deletions
diff --git a/scripts/build/lb_chroot_apt b/scripts/build/lb_chroot_apt
index 95c6159cc..2c79ee6d1 100755
--- a/scripts/build/lb_chroot_apt
+++ b/scripts/build/lb_chroot_apt
@@ -150,22 +150,28 @@ case "${1}" in
progress)
if [ ! -e chroot/etc/apt/preferences.d/progress.pref ]
then
- _DISTRIBUTIONS="$(echo ${LB_DISTRIBUTION} | sed -e 's|-backports||')"
+ _DISTRIBUTION="$(echo ${LB_DISTRIBUTION} | sed -e 's|-backports||')"
+
+ _DISTRIBUTIONS="${_DISTRIBUTION}"
if [ "${LB_SECURITY}" = "true" ]
then
- _DISTRIBUTION="${_DISTRIBUTION} $(echo ${LB_DISTRIBUTION} | sed -e 's|-backports||')-security"
+ _DISTRIBUTIONS="${_DISTRIBUTIONS} ${_DISTRIBUTION}-security"
fi
if [ "${LB_VOLATILE}" = "true" ]
then
- _DISTRIBUTION="${_DISTRIBUTION} $(echo ${LB_DISTRIBUTION} | sed -e 's|-backports||')-updates"
+ _DISTRIBUTIONS="${_DISTRIBUTIONS} ${_DISTRIBUTION}-updates"
fi
- if [ "${LB_BACKPORTS}" = "true" ]
- then
- _DISTRIBUTION="${_DISTRIBUTION} $(echo ${LB_DISTRIBUTION} | sed -e 's|-backports||')-backports"
- fi
+ case "${LB_DISTRIBUTION}" in
+ *-backports)
+ if [ "${LB_BACKPORTS}" = "true" ]
+ then
+ _DISTRIBUTIONS="${_DISTRIBUTIONS} ${_DISTRIBUTION}-backports"
+ fi
+ ;;
+ esac
for _DISTRIBUTION in ${_DISTRIBUTIONS}
do