summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2024-08-29 09:39:17 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2024-08-29 11:21:52 +0000
commitfecb847cee1490daf1fc9d85fe275c4748291102 (patch)
tree7644a6f81b12ff4020dbe0f81cc2fd5bb58aad14
parentUsing signed-by for local apt sources. (diff)
downloadcompute-tools-fecb847cee1490daf1fc9d85fe275c4748291102.tar.xz
compute-tools-fecb847cee1490daf1fc9d85fe275c4748291102.zip
Also adding comment from local archives apt sources in apt preferences for consistency.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rwxr-xr-xshare/build-scripts/debconf.d/0003-debconf9
1 files changed, 9 insertions, 0 deletions
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}