summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-01-29 18:55:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-01-29 19:44:47 +0000
commitd7ed778ab5a418006cc51461006a9c2ae01d23f7 (patch)
tree9615695db23b07f2c2c5d8db76ab3ad9a0eb4745
parentUpdating debconf priorities from low to high. (diff)
downloadprogress-linux-d7ed778ab5a418006cc51461006a9c2ae01d23f7.tar.xz
progress-linux-d7ed778ab5a418006cc51461006a9c2ae01d23f7.zip
Showing archive areas debconf question only when at least one archive has previously been selected.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rwxr-xr-xdebian/progress-linux.config11
1 files 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