mirror of
https://git.yoctoproject.org/poky
synced 2026-07-27 19:37:10 +00:00
devtool: upgrade: eliminate unnecessary datastore copy
We aren't modifying the datastore copy here, so we don't need a copy at all. (From OE-Core rev: 9f05bf98d4dbcb991b684a2ab480c6638c6be292) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.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
860574edb2
commit
e6f684b10c
@@ -241,14 +241,13 @@ def _extract_new_source(newpv, srctree, no_patch, srcrev, branch, keep_temp, tin
|
|||||||
|
|
||||||
def _create_new_recipe(newpv, md5, sha256, srcrev, srcbranch, workspace, tinfoil, rd):
|
def _create_new_recipe(newpv, md5, sha256, srcrev, srcbranch, workspace, tinfoil, rd):
|
||||||
"""Creates the new recipe under workspace"""
|
"""Creates the new recipe under workspace"""
|
||||||
crd = rd.createCopy()
|
|
||||||
|
|
||||||
bpn = crd.getVar('BPN', True)
|
bpn = rd.getVar('BPN', True)
|
||||||
path = os.path.join(workspace, 'recipes', bpn)
|
path = os.path.join(workspace, 'recipes', bpn)
|
||||||
bb.utils.mkdirhier(path)
|
bb.utils.mkdirhier(path)
|
||||||
oe.recipeutils.copy_recipe_files(crd, path)
|
oe.recipeutils.copy_recipe_files(rd, path)
|
||||||
|
|
||||||
oldpv = crd.getVar('PV', True)
|
oldpv = rd.getVar('PV', True)
|
||||||
if not newpv:
|
if not newpv:
|
||||||
newpv = oldpv
|
newpv = oldpv
|
||||||
origpath = rd.getVar('FILE', True)
|
origpath = rd.getVar('FILE', True)
|
||||||
|
|||||||
Reference in New Issue
Block a user