From d7ed778ab5a418006cc51461006a9c2ae01d23f7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 29 Jan 2019 19:55:31 +0100 Subject: Showing archive areas debconf question only when at least one archive has previously been selected. Signed-off-by: Daniel Baumann --- debian/progress-linux.config | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/debian/progress-linux.config b/debian/progress-linux.config index cb13bdb..400b050 100755 --- a/debian/progress-linux.config +++ b/debian/progress-linux.config @@ -4,12 +4,17 @@ set -e . /usr/share/debconf/confmodule +# apt archives db_settitle progress-linux/title db_input high progress-linux/archives || true db_go -db_settitle progress-linux/title -db_input high progress-linux/archive-areas || true -db_go +if db_get progress-linux/archives +then + # apt archive-areas + db_settitle progress-linux/title + db_input high progress-linux/archive-areas || true + db_go +fi db_stop -- cgit v1.2.3