From: Christopher Larson Date: Fri, 26 Jun 2015 13:24:29 +0000 (-0700) Subject: recipetool.append: add extralines arg to appendsrc X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~29611 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=c6feb6e97c9929560b1e3cec280c1d7976ecc030;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git recipetool.append: add extralines arg to appendsrc This makes the function more reusable for other sub-commands. Signed-off-by: Christopher Larson Signed-off-by: Ross Burton --- 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: