[OE-core] [PATCH 5/6] oe-git-proxy: NO_PROXY suffix matching without wildcard for match_host
Henning Schild
henning.schild at siemens.com
Tue Sep 3 12:22:23 UTC 2019
From: Henning Schild <henning.schild at siemens.com>
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.
Signed-off-by: Henning Schild <henning.schild at siemens.com>
---
scripts/oe-git-proxy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/oe-git-proxy b/scripts/oe-git-proxy
index 2f65f0c482..8f7b26c15e 100755
--- a/scripts/oe-git-proxy
+++ b/scripts/oe-git-proxy
@@ -104,7 +104,7 @@ match_host() {
HOST=$1
GLOB=$2
- if [ -z "${HOST%%$GLOB}" ]; then
+ if [ -z "${HOST%%*$GLOB}" ]; then
return 0
fi
--
2.21.0
More information about the Openembedded-core
mailing list