- if [ -n "$BACKPORTREPOS" ] ; then
- if ! checkbackports "$RELEASE" ; then
- echo "Backports for ${RELEASE} are not available." >&2
- exit 1
- else
- # user might have provided their own apt sources.list
- if ! grep -q backports /etc/apt/sources.list.d/backports.list 2>/dev/null ; then
- cat >> /etc/apt/sources.list.d/backports.list << EOF