[oe-commits] [openembedded-core] 81/122: recipetool: pass absolute source tree path to plugins

git at git.openembedded.org git at git.openembedded.org
Mon Dec 4 17:25:59 UTC 2017


This is an automated email from the git hooks/post-receive script.

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

commit 821742f48723a66fdafe5406bb57188b2f88889a
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Wed Sep 20 12:03:39 2017 +1200

    recipetool: pass absolute source tree path to plugins
    
    We shouldn't be passing a relative path to the plugins if that's what's
    been specified on the recipetool command line.
    
    Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
    Signed-off-by: Armin Kuster <akuster at mvista.com>
---
 scripts/lib/recipetool/create.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index ca474fc..1532735 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -613,9 +613,9 @@ def create_recipe(args):
 
     if args.src_subdir:
         srcsubdir = os.path.join(srcsubdir, args.src_subdir)
-        srctree_use = os.path.join(srctree, args.src_subdir)
+        srctree_use = os.path.abspath(os.path.join(srctree, args.src_subdir))
     else:
-        srctree_use = srctree
+        srctree_use = os.path.abspath(srctree)
 
     if args.outfile and os.path.isdir(args.outfile):
         outfile = None

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


More information about the Openembedded-commits mailing list