From 23a8022553da3ff2f09284a8e2aceb082080593d Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sun, 7 Dec 2014 01:11:18 -0500 Subject: [PATCH] ENH: added one more msg to catch when pkg is N/A --- tools/nd-configurerepo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2