5 . /usr/share/debconf/confmodule
10 # obtain all the options and call nd-configurerepo
11 opts="--do-not-update"
12 db_get neurodebian/release; [ "$RET" = "auto" ] || opts+=" -r '$RET'"
13 db_get neurodebian/mirror; nd_mirror="${RET##* }" # get just a url if it came together with alias
14 db_get neurodebian/flavor; nd_flavor="$RET"
15 db_get neurodebian/components; nd_components="${RET// /}"
17 db_get neurodebian/overwrite; [ "$RET" = "true" ] && opts+=" --overwrite" || :
18 db_get neurodebian/suffix; [ "$RET" = "" ] || opts+=" --suffix='$RET'" || :
20 eval nd-configurerepo -m "$nd_mirror" -c "$nd_components" $opts
22 abort-upgrade|abort-remove|abort-deconfigure)
27 echo "postinst called with unknown argument \`$1'" >&2