From 7d38b5aa339a776dc2e4e7e6eb9d65adc910790b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 8 Feb 2019 21:57:57 +0100 Subject: Dynamically showing distribution specific repositories to setup. Signed-off-by: Daniel Baumann --- debian/progress-linux.config | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) (limited to 'debian/progress-linux.config') diff --git a/debian/progress-linux.config b/debian/progress-linux.config index 99b7a02..6655630 100755 --- a/debian/progress-linux.config +++ b/debian/progress-linux.config @@ -6,17 +6,35 @@ PROJECT="progress-linux" . /usr/share/debconf/confmodule -# apt archives -db_settitle ${PROJECT}/title -db_input high ${PROJECT}/archives || true -db_go - -if db_get ${PROJECT}/archives -then - # apt archive-areas +Run_debconf () +{ + # apt archives db_settitle ${PROJECT}/title - db_input high ${PROJECT}/archive-areas || true + db_input high ${PROJECT}/archives || true db_go -fi + + if db_get ${PROJECT}/archives + then + # apt archive-areas + db_settitle ${PROJECT}/title + db_input high ${PROJECT}/archive-areas || true + db_go + fi +} + +DISTRIBUTION="$(cat /etc/debian_version)" + +case "${DISTRIBUTION}" in + 10.*|buster/sid) + db_subst ${PROJECT}/archives CHOICES "Progress Linux 5 (engywuck), Progress Linux 5 (engywuck-security), Progress Linux 5 (engywuck-updates), Progress Linux 5 (engywuck-extras), Progress Linux 5+ (engywuck-backports), Progress Linux 5+ (engywuck-backports-extras)" + db_subst ${PROJECT}/archives CHOICES_C "engywuck, engywuck-security, engywuck-updates, engywuck-extras, engywuck-backports, engywuck-backports-extras" + db_subst ${PROJECT}/archives DEFAULT "" + + db_subst ${PROJECT}/archive-areas CHOICES "main, contrib, non-free, restricted" + db_subst ${PROJECT}/archive-areas DEFAULT "main" + + Run_debconf + ;; +esac db_stop -- cgit v1.2.3