From fecb847cee1490daf1fc9d85fe275c4748291102 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 29 Aug 2024 11:39:17 +0200 Subject: Also adding comment from local archives apt sources in apt preferences for consistency. Signed-off-by: Daniel Baumann --- share/build-scripts/debconf.d/0003-debconf | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'share') diff --git a/share/build-scripts/debconf.d/0003-debconf b/share/build-scripts/debconf.d/0003-debconf index 305f159..dc2859e 100755 --- a/share/build-scripts/debconf.d/0003-debconf +++ b/share/build-scripts/debconf.d/0003-debconf @@ -743,6 +743,15 @@ EOF if [ -n "${PREFERENCES_PACKAGE}" ] || [ -n "${PREFERENCES_PIN}" ] || [ -n "${PREFERENCES_PIN_PRIORITY}" ] then + if [ -n "${COMMENT}" ] + then + +cat > "${DEBCONF_TMPDIR}/apt/$(basename ${LIST} .sources).pref" << EOF +# ${COMMENT} + +EOF + + fi cat >> "${DEBCONF_TMPDIR}/apt/$(basename ${LIST} .sources).pref" << EOF Package: ${PREFERENCES_PACKAGE} -- cgit v1.2.3