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