[oe-commits] Christopher Larson : recipetool.append: add extralines arg to appendsrc
git at git.openembedded.org
git at git.openembedded.org
Sun Jul 26 08:15:34 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: 5dd086f3389535c26313637e5541d3b1db8efe87
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=5dd086f3389535c26313637e5541d3b1db8efe87
Author: Christopher Larson <kergoth at gmail.com>
Date: Fri Jun 26 06:24:29 2015 -0700
recipetool.append: add extralines arg to appendsrc
This makes the function more reusable for other sub-commands.
Signed-off-by: Christopher Larson <kergoth at gmail.com>
Signed-off-by: Ross Burton <ross.burton at intel.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 3f2f9a4..ed7d0d4 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:
More information about the Openembedded-commits
mailing list