[oe-commits] [openembedded-core] branch master updated: oe-buildenv-internal: Correct the sed expression which updates $PATH

git at git.openembedded.org git at git.openembedded.org
Mon Mar 21 11:57:50 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

The following commit(s) were added to refs/heads/master by this push:
       new  9c20076   oe-buildenv-internal: Correct the sed expression which updates $PATH
9c20076 is described below

commit 9c200760cbbe322ed884729eb395f389c863e1c8
Author: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
AuthorDate: Mon Mar 21 12:41:46 2016 +0100

    oe-buildenv-internal: Correct the sed expression which updates $PATH
    
    Without this, the code that adds paths to $PATH could cause it to end
    up with a trailing : which would then cause an error from the sanity
    checker.
    
    Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/oe-buildenv-internal | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal
index bc6a4fe..8eee008 100755
--- a/scripts/oe-buildenv-internal
+++ b/scripts/oe-buildenv-internal
@@ -99,7 +99,7 @@ fi
 # Make sure our paths are at the beginning of $PATH
 for newpath in "$BITBAKEDIR/bin" "$OEROOT/scripts"; do
     # Remove any existences of $newpath from $PATH
-    PATH=$(echo $PATH | sed -re "s#(^|:)$newpath(:|$)#\1#g;s#^:##")
+    PATH=$(echo $PATH | sed -re "s#(^|:)$newpath(:|$)#\2#g;s#^:##")
 
     # Add $newpath to $PATH
     PATH="$newpath:$PATH"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list