X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tools%2Fnd-configurerepo;fp=tools%2Fnd-configurerepo;h=0b0f91caaa741c4ad857e383d85546dd48007099;hb=23a8022553da3ff2f09284a8e2aceb082080593d;hp=c2b6cf3aa2c3dd7aa6aeb2762deb84dbc55d9033;hpb=65de42f63ec620af96bd89887cb325772ccfb50a;p=neurodebian.git diff --git a/tools/nd-configurerepo b/tools/nd-configurerepo index c2b6cf3..0b0f91c 100755 --- a/tools/nd-configurerepo +++ b/tools/nd-configurerepo @@ -339,7 +339,8 @@ assure_command_from_package() # 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