diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/devtool/upgrade.py | 7 |
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 | ||
242 | def _create_new_recipe(newpv, md5, sha256, srcrev, srcbranch, workspace, tinfoil, rd): | 242 | def _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) |