]> code.ossystems Code Review - openembedded-core.git/commit
devtool: standard: Expand SRCREV before using it in _update_recipe_srcrev
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Tue, 10 Oct 2017 22:01:49 +0000 (00:01 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Oct 2017 22:52:03 +0000 (23:52 +0100)
commit094499c819722ad698ccb64ec65dd439b211c31c
tree7460a3d6b5a413a8dc2b2b862e9349309a1057e9
parenta3e9e7a38b3d9caed49380ebc05651a97f613c7c
devtool: standard: Expand SRCREV before using it in _update_recipe_srcrev

If SRCREV contains a variable reference, any devtool command that
would try to update it would fail. E.g., if SRCREV = "R${PV}", then
devtool finish without having committed any changes would fail with:

  oe.patch.CmdError: Command Error: 'sh -c 'git format-patch R${PV} -o
  /tmp/oepatchb_doareb -- .'' exited with 0 Output:
  fatal: bad revision 'R'

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/devtool/standard.py