Aníbal Limón
ec0ae0dc29
rrs/tools.py: Create standalone get_recipe_pv_without_srcpv function.
...
Copied get_recipe_pv_without_srcpv from oe-core/recipeutils library
to avoid import errors caused by have imported twice oe-core from poky
and from tinfoil.
rrs/tools/rrs_upgrade_history.py: Update to use get_recipe_pv_without_srcpv
from common.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04 23:57:52 +12:00
Aníbal Limón
115bd943d9
rrs/tools/common.py: Handle exception when load_recipes caused by expand PV variable.
...
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04 23:57:52 +12:00
Aníbal Limón
669d58d191
rrs/tools/common.py: Add get_logger function.
...
get_logger function creates a stream logger and a rotate
file logger to store logs.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04 23:57:52 +12:00
Aníbal Limón
a04ce69942
rrs/tools/common.py: Add load_recipes function.
...
load_recipes function setup tinfoil and parses recipe for given
directory.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04 23:57:52 +12:00
Aníbal Limón
1208f6bc67
rrs/tools/common.py: Add get_pv_type function.
...
get_pv_type returns the type of pv can be git, svn, hg,
etc.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04 23:57:52 +12:00
Aníbal Limón
31c2120edd
rrs/tools/common.py: Add library with common functionality.
...
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04 23:57:52 +12:00