]> git.donarmstrong.com Git - neurodebian.git/blobdiff - debian/neurodebian-repository.config
BF: Disable logic for demanding netselect (absent on ubuntus)
[neurodebian.git] / debian / neurodebian-repository.config
index a40f1533e409cfd6b4510ca49018b4aafeaf7d46..0f3776c8a6dd50bbf0465d50301468d10438498b 100755 (executable)
@@ -52,27 +52,33 @@ while [ "$STATE" != 0 -a "$STATE" != 8 ]; do
     esac
 
     if db_go; then
-               case $STATE in
-                       2)
-                               db_metaget neurodebian-repository/mirror value
-                               selected_mirror="$RET"
-                               # TODOs:
-                               # - handle custom
-                               # - separate out alias from url
-                               debug "selected mirror: $selected_mirror"
-                               if [ "$selected_mirror" = "best" ] && ! which netselect &>/dev/null; then
-                                       if [ "$mirror_selection_ret" = "30 question skipped" ]; then
-                                               # if the question was not even shown, we would
-                                               # not get a chance to specify mirror, thus
-                                               # better just fail altogether and demand intervention
-                                               db_input high neurodebian-repository/netselect-cannot-be-used
-                                               exit 1
-                                       else
-                                               db_input high neurodebian-repository/netselect-not-found
-                                               continue;
-                                       fi
-                               fi
-               esac
+# Ubuntus managed to remove netselect "to accompany apt-netselect"
+# https://bugs.launchpad.net/ubuntu/+source/netselect/+bug/337377
+# So for now remove this mandatory demanding of netselect for "best", and
+# rely on logic in nd-aptenable to select default mirror (currently origin)
+# as the 'best'
+#
+#              case $STATE in
+#                      2)
+#                              db_metaget neurodebian-repository/mirror value
+#                              selected_mirror="$RET"
+#                              # TODOs:
+#                              # - handle custom
+#                              # - separate out alias from url
+#                              debug "selected mirror: $selected_mirror"
+#                              if [ "$selected_mirror" = "best" ] && ! which netselect &>/dev/null; then
+#                                      if [ "$mirror_selection_ret" = "30 question skipped" ]; then
+#                                              # if the question was not even shown, we would
+#                                              # not get a chance to specify mirror, thus
+#                                              # better just fail altogether and demand intervention
+#                                              db_input high neurodebian-repository/netselect-cannot-be-used
+#                                              exit 1
+#                                      else
+#                                              db_input high neurodebian-repository/netselect-not-found
+#                                              continue;
+#                                      fi
+#                              fi
+#              esac
         STATE=$(($STATE + 1))
     else
         STATE=$(($STATE - 1))