]> git.donarmstrong.com Git - neurodebian.git/blobdiff - tools/nd-configurerepo
Also for stats report which repo and which job number use our setup
[neurodebian.git] / tools / nd-configurerepo
index b21b4342d0756711dac217cbe53818e4d3df6e5a..e3a7d47a0718bc08e8d93b639b09435f7c22b8d0 100755 (executable)
@@ -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