diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-12-13 20:09:36 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-14 12:30:49 +0000 |
commit | 70ce5952373cedc1620a9c2d1e1348ab972124cb (patch) | |
tree | a2a5aaf4c01f7ef569829de29be8faa45c28cffd /scripts/lib/devtool/upgrade.py | |
parent | 1f8cf63f8affcf6c881c7842ef38b82b8781d2eb (diff) | |
download | poky-70ce5952373cedc1620a9c2d1e1348ab972124cb.tar.gz |
devtool / recipetool: use tinfoil parsing API
Use Tinfoil.parse_recipe_file() and Tinfoil.parse_recipe() instead of
the recipeutils equivalents, and replace any local duplicate
implementations. This not only tidies up the code but also allows these
calls to work in memres mode.
(From OE-Core rev: f13b56266ee96dfab65a3a7db50e8051aa9f071a)
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/devtool/upgrade.py')
-rw-r--r-- | scripts/lib/devtool/upgrade.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py index a4239f1cd2..52f9ab1a01 100644 --- a/scripts/lib/devtool/upgrade.py +++ b/scripts/lib/devtool/upgrade.py | |||
@@ -320,7 +320,7 @@ def _create_new_recipe(newpv, md5, sha256, srcrev, srcbranch, workspace, tinfoil | |||
320 | newvalues['SRC_URI[md5sum]'] = md5 | 320 | newvalues['SRC_URI[md5sum]'] = md5 |
321 | newvalues['SRC_URI[sha256sum]'] = sha256 | 321 | newvalues['SRC_URI[sha256sum]'] = sha256 |
322 | 322 | ||
323 | rd = oe.recipeutils.parse_recipe(tinfoil.cooker, fullpath, None) | 323 | rd = tinfoil.parse_recipe_file(fullpath, False) |
324 | oe.recipeutils.patch_recipe(rd, fullpath, newvalues) | 324 | oe.recipeutils.patch_recipe(rd, fullpath, newvalues) |
325 | 325 | ||
326 | return fullpath, copied | 326 | return fullpath, copied |