]> git.donarmstrong.com Git - neurodebian.git/blobdiff - debian/neurodebian-repository.postinst
BF: right -- we can't apt-get update while installing the package (via apt at least...
[neurodebian.git] / debian / neurodebian-repository.postinst
index d514acc50a1ec6c93f02a98b5a6fa65c1ddf0483..49dda25b59e0b7dfea29940cc3aa92c38f181448 100755 (executable)
@@ -8,17 +8,16 @@ set -e
 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