[OE-core] [PATCH 3/3] recipetool.append: add extralines arg to appendsrc
Christopher Larson
kergoth at gmail.com
Mon Jun 29 20:50:07 UTC 2015
This makes the function more reusable for other sub-commands.
Signed-off-by: Christopher Larson <kergoth at gmail.com>
---
scripts/lib/recipetool/append.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/lib/recipetool/append.py b/scripts/lib/recipetool/append.py
index 9903871..24a7903 100644
--- a/scripts/lib/recipetool/append.py
+++ b/scripts/lib/recipetool/append.py
@@ -334,7 +334,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)
@@ -349,7 +349,7 @@ def appendsrc(args, files, rd):
simplified[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:
--
2.2.1
More information about the Openembedded-core
mailing list