Correcting assembling of automatic pinning in progress mode.

This commit is contained in:
Daniel Baumann 2012-01-07 19:54:56 +01:00
parent e3c9db7a2b
commit e05fa004ff
1 changed files with 12 additions and 14 deletions

View File

@ -152,23 +152,21 @@ case "${1}" in
then
echo "# /etc/apt/preferences.d/progress.pref" > chroot/etc/apt/preferences.d/progress.pref
case "${LB_DISTRIBUTION}" in
*-backports)
_DISTRIBUTIONS="$(echo ${LB_DISTRIBUTION} | sed -e 's|-backports||') ${LB_DISTRIBUTION}"
;;
*)
_DISTRIBUTIONS="${LB_DISTRIBUTION}"
;;
esac
_DISTRIBUTIONS="$(echo ${LB_DISTRIBUTION} | sed -e 's|-backports||')"
if [ "${LB_SECURITY}" = "true" ]
then
case "${LB_DISTRIBUTION}" in
artax)
_DISTRIBUTION="${_DISTRIBUTION} ${LB_DISTRIBUTION}-security"
;;
esac
_DISTRIBUTION="${_DISTRIBUTION} $(echo ${LB_DISTRIBUTION} | sed -e 's|-backports||')-security"
fi
if [ "${LB_VOLATILE}" = "true" ]
then
_DISTRIBUTION="${_DISTRIBUTION} $(echo ${LB_DISTRIBUTION} | sed -e 's|-backports||')-updates"
fi
if [ "${LB_BACKPORTS}" = "true" ]
then
_DISTRIBUTION="${_DISTRIBUTION} $(echo ${LB_DISTRIBUTION} | sed -e 's|-backports||')-backports"
fi
for _DISTRIBUTION in ${_DISTRIBUTIONS}