Package: neurodebian-repository
Architecture: all
-Pre-depends: python-minimal, netselect, wget
+Pre-depends: python-minimal, wget
Depends: neurodebian-keyring, ${misc:Depends}
Recommends: netselect
Description: NeuroDebian APT repository installer
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))
- origin: original NeuroDebian repository
- best: will try to use netselect to select "closest" mirror.
Depending on the configuration of the firewall, and actual mirror
- setup, might fail to select actually closest one. netselect
- must be installed to use this feature.
+ setup, might fail to select actually closest one. If netselect
+ is not available, default mirror (possibly 'origin') will be used.
Template: neurodebian-repository/flavor