mirror of
https://git.yoctoproject.org/poky
synced 2026-09-20 03:49:32 +02: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
|
return 3
|
||||||
|
|
||||||
|
|
||||||
def appendsrc(args, files, rd):
|
def appendsrc(args, files, rd, extralines=None):
|
||||||
import oe.recipeutils
|
import oe.recipeutils
|
||||||
|
|
||||||
srcdir = rd.getVar('S', True)
|
srcdir = rd.getVar('S', True)
|
||||||
@@ -352,7 +352,7 @@ def appendsrc(args, files, rd):
|
|||||||
simplified[str(simple_uri)] = uri
|
simplified[str(simple_uri)] = uri
|
||||||
|
|
||||||
copyfiles = {}
|
copyfiles = {}
|
||||||
extralines = []
|
extralines = extralines or []
|
||||||
for newfile, srcfile in files.iteritems():
|
for newfile, srcfile in files.iteritems():
|
||||||
src_destdir = os.path.dirname(srcfile)
|
src_destdir = os.path.dirname(srcfile)
|
||||||
if not args.use_workdir:
|
if not args.use_workdir:
|
||||||
|
|||||||
Reference in New Issue
Block a user