]> code.ossystems Code Review - openembedded-core.git/commitdiff
recipetool: pass absolute source tree path to plugins
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 20 Sep 2017 00:03:39 +0000 (12:03 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Nov 2017 14:44:31 +0000 (14:44 +0000)
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@linux.intel.com>
scripts/lib/recipetool/create.py

index ca474fce991e3bf19de8a87a7f84e2163213ca2f..1532735ab8b04d15a01df19f1917e1e72e2b4861 100644 (file)
@@ -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