]> code.ossystems Code Review - openembedded-core.git/commit
recipeutils: Add get_recipe_upstream_version and get_recipe_pv_without_srcpv functions
authorAníbal Limón <anibal.limon@linux.intel.com>
Mon, 1 Jun 2015 21:45:25 +0000 (16:45 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 3 Jun 2015 15:33:00 +0000 (16:33 +0100)
commitd1683b5bb584e2b09bda76bf8523b12636d91d73
tree1c1afa25534faaf84903c65478e210fba25b66a5
parent729592223a0c076abe2c58a0cf3f4c6d6583602c
recipeutils: Add get_recipe_upstream_version and get_recipe_pv_without_srcpv functions

The get_recipe_upstream_version functions tries to get the current
version of recipe in upstream it uses bb.fetch2 latest_versionstring
method also latest_revision when is SCM.

The get_recipe_pv_without_srcpv discards the SRCPV in SCM's recipe like
git it returns a tuple with the version, prefix and suffix of a PV.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/recipeutils.py