From 87e9543c98a5b8d22fe1659b73f2927bdf6e895f Mon Sep 17 00:00:00 2001 From: jnqnfe Date: Tue, 2 Dec 2014 01:48:28 +0000 Subject: source: target downloads with corresponding version Prefer downloading the version of the source package that actually corresponds to the version of the binary. Should apt-update be run and a package updated, we do not really want to fetch a newer copy of the source than that of the binary, we want the exact corresponding version (kinda the whole point of compiling a source disc that they correspond). If the exact version is no longer available then it is surely preferable to list it in the missing list than end up with a newer version. Gbp-Dch: Short Closes: #952932 --- scripts/build/source_debian | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'scripts/build') diff --git a/scripts/build/source_debian b/scripts/build/source_debian index bcd45a65b..36a654e26 100755 --- a/scripts/build/source_debian +++ b/scripts/build/source_debian @@ -46,7 +46,15 @@ then fi # Download sources -Chroot chroot "dpkg --get-selections" | awk '{ print $1 }' > source-selection.txt + +cat >> chroot/source-selection.sh << EOF +#!/bin/sh +dpkg-query -W -f='\${binary:Package}=\${Version}\n' > source-selection.txt +EOF + +Chroot chroot "sh source-selection.sh" +rm -f chroot/source-selection.sh +mv chroot/source-selection.txt ./ echo "${LB_BOOTLOADERS}" | \ while IFS="," read -r BOOTLOADER -- cgit v1.2.3