From: Paul Eggleton Date: Tue, 23 Feb 2016 20:01:02 +0000 (+1300) Subject: devtool: upgrade: eliminate unnecessary datastore copy X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~26814 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f05bf98d4dbcb991b684a2ab480c6638c6be292;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git devtool: upgrade: eliminate unnecessary datastore copy We aren't modifying the datastore copy here, so we don't need a copy at all. Signed-off-by: Paul Eggleton Signed-off-by: Ross Burton --- diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py index fae20efc597..50c670eeb3a 100644 --- a/scripts/lib/devtool/upgrade.py +++ b/scripts/lib/devtool/upgrade.py @@ -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): """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) 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: newpv = oldpv origpath = rd.getVar('FILE', True)