From e94e9699b6f865d6b278eb746ee84e2d2905466d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 7 Aug 2013 12:25:35 +0200 Subject: Stripping backports from sources.list temporarily when obtaining sources to workaround apts disregard of pinning for the cases where backports are included but not enabled. --- scripts/build/source_debian | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'scripts') diff --git a/scripts/build/source_debian b/scripts/build/source_debian index bc2b5ef44..ca506b914 100755 --- a/scripts/build/source_debian +++ b/scripts/build/source_debian @@ -104,6 +104,33 @@ then echo "${LB_TASKSEL}" >> source-selection.txt fi +# apt-get source does not respect pinning +# building images with backports included but not enabled +# will result in apt-get source download stuff from backports +# where available. workaround: disable backports +case "${LB_MODE}" in + progress-linux) + case "${LB_DISTRIBUTION}" in + *-backports) + + ;; + + *) + if grep -qs "-backports" chroot/etc/apt/sources.list.d/progress-linux.list + then + while read _LINE + do + if echo "${_LINE}" | grep -qs ${LB_DISTRIBUTION}-backports + then + sed -i -e "s|${_LINE}|#${_LINE}|" chroot/etc/apt/sources.list.d/progress-linux.list + fi + done < chroot/etc/apt/sources.list.d/progress-linux.list + fi + ;; + esac + ;; +esac + MISSING="" grep . source-selection.txt | \ -- cgit v1.2.3