Simplyfing automatic pinning in derivative modes.

This commit is contained in:
Daniel Baumann 2012-02-04 22:40:41 +01:00
parent d9a0202d1b
commit bd9b635a0a
1 changed files with 13 additions and 7 deletions

View File

@ -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