case "$1" in
configure)
# obtain all the options and call nd-aptenable
- opts=""
+ opts="--do-not-update"
db_get neurodebian-repository/release; [ "$RET" = "auto" ] || opts+=" -r '$RET'"
db_get neurodebian-repository/mirror; nd_mirror="${RET##* }" # get just a url if it came together with alias
db_get neurodebian-repository/flavor; nd_flavor="$RET"
- db_get neurodebian-repository/components; nd_components="$RET"
+ db_get neurodebian-repository/components; nd_components="${RET// /}"
db_get neurodebian-repository/overwrite; [ "$RET" = "true" ] && opts+=" --overwrite" || :
db_get neurodebian-repository/suffix; [ "$RET" = "" ] || opts+=" --suffix='$RET'" || :
- db_get neurodebian-repository/apt-update; [ "$RET" = "true" ] || opts+=" --do-not-update" || :
- eval nd-aptenable -m "$nd_mirror" $opts
+ eval nd-aptenable -m "$nd_mirror" -c "$nd_components" $opts
;;
abort-upgrade|abort-remove|abort-deconfigure)
# nothing to do