diff options
| author | Daniel Baumann <mail@daniel-baumann.ch> | 2013-08-07 12:25:35 +0200 | 
|---|---|---|
| committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-08-07 12:25:43 +0200 | 
| commit | e94e9699b6f865d6b278eb746ee84e2d2905466d (patch) | |
| tree | e3afdbc4df0b52862111807b3e68f57ee84b838b /scripts/build/source_debian | |
| parent | af16834f28f0ec170780c6527be4df0e07d34211 (diff) | |
| download | vyos-live-build-e94e9699b6f865d6b278eb746ee84e2d2905466d.tar.gz vyos-live-build-e94e9699b6f865d6b278eb746ee84e2d2905466d.zip | |
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.
Diffstat (limited to 'scripts/build/source_debian')
| -rwxr-xr-x | scripts/build/source_debian | 27 | 
1 files changed, 27 insertions, 0 deletions
| 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 | \ | 
