[oe-commits] Peter Kjellerstedt : oe-git-proxy: Allow explicit IP addresses in $NO_PROXY
git at git.openembedded.org
git at git.openembedded.org
Wed Sep 23 08:56:00 UTC 2015
Module: openembedded-core.git
Branch: master
Commit: c01e61d8b79d644880415986bdb1ba925f194329
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=c01e61d8b79d644880415986bdb1ba925f194329
Author: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
Date: Fri Sep 18 12:46:04 2015 +0200
oe-git-proxy: Allow explicit IP addresses in $NO_PROXY
Without this fix, if one specified, e.g., 127.0.0.1 in $NO_PROXY, the
oe-git-proxy script would fail with a message like this:
/home/pkj/yocto/poky/scripts/oe-git-proxy: line 64: 32-127.0.0.1: syntax error: invalid arithmetic operator (error token is ".0.0.1")
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
scripts/oe-git-proxy | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/oe-git-proxy b/scripts/oe-git-proxy
index 4873455..2473282 100755
--- a/scripts/oe-git-proxy
+++ b/scripts/oe-git-proxy
@@ -53,6 +53,7 @@ match_ipv4() {
# Determine the mask bitlength
BITS=${CIDR##*/}
+ [ "$BITS" != "$CIDR" ] || BITS=32
if [ -z "$BITS" ]; then
return 1
fi
More information about the Openembedded-commits
mailing list