From: Yaroslav Halchenko Date: Sun, 7 Dec 2014 06:11:18 +0000 (-0500) Subject: ENH: added one more msg to catch when pkg is N/A X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=23a8022553da3ff2f09284a8e2aceb082080593d;p=neurodebian.git ENH: added one more msg to catch when pkg is N/A --- 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