aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Larson <kergoth@gmail.com>2015-06-26 06:24:29 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-27 12:28:12 +0100
commitc6feb6e97c9929560b1e3cec280c1d7976ecc030 (patch)
tree06c21a198e9e5d61fe51c955ed1114eee41d9e99
parent22ba003f62a321c3b8405a03d6c9ee04dc0a62a6 (diff)
downloadopenembedded-core-contrib-c6feb6e97c9929560b1e3cec280c1d7976ecc030.tar.gz
openembedded-core-contrib-c6feb6e97c9929560b1e3cec280c1d7976ecc030.tar.bz2
openembedded-core-contrib-c6feb6e97c9929560b1e3cec280c1d7976ecc030.zip
recipetool.append: add extralines arg to appendsrc
This makes the function more reusable for other sub-commands. Signed-off-by: Christopher Larson <kergoth@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--scripts/lib/recipetool/append.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/recipetool/append.py b/scripts/lib/recipetool/append.py
index 3f2f9a4f4f0..ed7d0d4b275 100644
--- a/scripts/lib/recipetool/append.py
+++ b/scripts/lib/recipetool/append.py
@@ -337,7 +337,7 @@ def appendfile(args):
return 3
-def appendsrc(args, files, rd):
+def appendsrc(args, files, rd, extralines=None):
import oe.recipeutils
srcdir = rd.getVar('S', True)
@@ -352,7 +352,7 @@ def appendsrc(args, files, rd):
simplified[str(simple_uri)] = uri
copyfiles = {}
- extralines = []
+ extralines = extralines or []
for newfile, srcfile in files.iteritems():
src_destdir = os.path.dirname(srcfile)
if not args.use_workdir: