mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
recipetool.append: add extralines arg to appendsrc
This makes the function more reusable for other sub-commands. (From OE-Core rev: c6feb6e97c9929560b1e3cec280c1d7976ecc030) Signed-off-by: Christopher Larson <kergoth@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e28c4ba7bf
commit
89878f5906
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user