summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-02-24 09:01:02 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-28 11:33:00 +0000
commite6f684b10cf50e8f0b2d3f5bd2f1e0c367a3bab2 (patch)
tree669f8404f428acfd015963db26e852051da92b07 /scripts/lib
parent860574edb29e48daa37340c275900046abea639f (diff)
downloadpoky-e6f684b10cf50e8f0b2d3f5bd2f1e0c367a3bab2.tar.gz
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>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/devtool/upgrade.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
index fae20efc59..50c670eeb3 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
241 241
242def _create_new_recipe(newpv, md5, sha256, srcrev, srcbranch, workspace, tinfoil, rd): 242def _create_new_recipe(newpv, md5, sha256, srcrev, srcbranch, workspace, tinfoil, rd):
243 """Creates the new recipe under workspace""" 243 """Creates the new recipe under workspace"""
244 crd = rd.createCopy()
245 244
246 bpn = crd.getVar('BPN', True) 245 bpn = rd.getVar('BPN', True)
247 path = os.path.join(workspace, 'recipes', bpn) 246 path = os.path.join(workspace, 'recipes', bpn)
248 bb.utils.mkdirhier(path) 247 bb.utils.mkdirhier(path)
249 oe.recipeutils.copy_recipe_files(crd, path) 248 oe.recipeutils.copy_recipe_files(rd, path)
250 249
251 oldpv = crd.getVar('PV', True) 250 oldpv = rd.getVar('PV', True)
252 if not newpv: 251 if not newpv:
253 newpv = oldpv 252 newpv = oldpv
254 origpath = rd.getVar('FILE', True) 253 origpath = rd.getVar('FILE', True)