]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-git-proxy: NO_PROXY suffix matching without wildcard for match_host
authorHenning Schild <henning.schild@siemens.com>
Tue, 3 Sep 2019 13:43:49 +0000 (15:43 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 15 Sep 2019 16:49:48 +0000 (17:49 +0100)
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@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/oe-git-proxy

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