Patchwork oe-init-build-env: unset BBSERVER

login
register
mail settings
Submitter Richard Purdie
Date Oct. 4, 2013, 1:14 p.m.
Message ID <1380892450.18603.600.camel@ted>
Download mbox | patch
Permalink /patch/59251/
State Accepted
Commit 5cc4d315709de195bfb0655c2f00ae2267bfa4c6
Headers show

Comments

Richard Purdie - Oct. 4, 2013, 1:14 p.m.
If BBSERVER is set, we should unset it before proceeding. Its assumed the
user will have unloaded the server from memory should they have wished
to do so.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/oe-init-build-env b/oe-init-build-env
index 68af7b5..de9692f 100755
--- a/oe-init-build-env
+++ b/oe-init-build-env
@@ -35,7 +35,10 @@  else
    else
       OEROOT="`pwd`"
    fi
-   OEROOT=`readlink -f "$OEROOT"`
+   if [ -n "$BBSERVER" ]; then
+      unset BBSERVER
+   fi
+    OEROOT=`readlink -f "$OEROOT"`
    export OEROOT
    . $OEROOT/scripts/oe-buildenv-internal && \
         $OEROOT/scripts/oe-setup-builddir && \