oe-git-proxy: NO_PROXY suffix matching without wildcard for match_host

NO_PROXY can also contain just suffixes that do not start with a "*". We
failed to match those so far. Just add an extra "*" to also match those
suffixes. If one was there we get "**" which does not hurt.

(From OE-Core rev: 12f0cc209aaba48f846c62663e0b9e5efd253d71)

Signed-off-by: Henning Schild <henning.schild@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Henning Schild 2019-09-03 15:43:49 +02:00 committed by Richard Purdie
parent 1b970e222e
commit 7ffd9ee9c3

View File

@ -107,7 +107,7 @@ match_host() {
HOST=$1
GLOB=$2
if [ -z "${HOST%%$GLOB}" ]; then
if [ -z "${HOST%%*$GLOB}" ]; then
return 0
fi