Return a list (with abbreviation) of known NeuroDebian mirrors.
--overwrite,
- If apt file already present, it would not be overriden (by default).
+ If apt file already present, it would not be overridden (by default).
Use this option to overwrite.
--suffix=SUFFIX
# if absent -- check availability of the package
apt_cache=$(LANG=C apt-cache policy "$pkg" 2>&1)
- if [[ "$apt_cache" =~ Unable\ to\ locate\ package ]] || [[ "$apt_cache" =~ Candidate:\ (none) ]]; then
+ if [[ "$apt_cache" =~ Unable\ to\ locate\ package ]] || [[ "$apt_cache" =~ Candidate:\ (none) ]] \
+ || [[ "$apt_cache" =~ is\ not\ available ]] ; then
print_verbose 1 "Package $pkg providing command $cmd is N/A. Skipping"
return 10;
fi
#
# Figure out if key needs to be imported (if ran within package,
-# should already be there due to neurodebian-keyring package)
+# should already be there due to neurodebian-archive-keyring package)
if LANG=C eval $ae_sudo apt-key export $nd_key_id 2>&1 1>/dev/null | grep -qe "nothing exported"; then
print_verbose 1 "Fetching the key from the server"
eval_dry apt-key adv --recv-keys --keyserver pgp.mit.edu $nd_key_id