Aníbal Limón
a99837213f
rrs/tools/common.py: common_setup() Add layerindex to the path.
...
Add explicity layerindex folder to the path for avoid errors
in imports.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2016-06-29 15:19:14 -05:00
Aníbal Limón
931297fb58
layerindex,rrs: Minor changes to work with python3.
...
[YOCTO #9746 ]
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2016-06-29 15:08:54 -05:00
Aníbal Limón
c314485b01
rrs/tools: get_recipe_pv_without_srcrev add support for discard prefixes
...
Avoid version prefixes like v|r into all versions.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-07-14 18:36:53 -05:00
Aníbal Limón
3a050f47de
rrs/tools: Convert unicode strings from Django models to strings.
...
bb.cache.Cache.loadDatafull() expects an filepath in asciii, if not
is provided it fails with character mapping error.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-07-14 10:51:41 -05:00
Aníbal Limón
cbdfaa0e39
rrs/tools/common.py: Add import of FetchError and display parse errors
...
Import of FetchError when try to expand PV somethings requires to have
SRCREV/SRCPV causing an FetcherError.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-07-14 10:51:41 -05:00
Aníbal Limón
488a2351ad
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>
2015-07-14 10:51:41 -05:00
Aníbal Limón
873429a052
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>
2015-07-14 10:51:41 -05:00
Aníbal Limón
0aba352c22
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>
2015-07-14 10:51:41 -05:00
Aníbal Limón
b98e1ff8f0
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>
2015-07-14 10:51:41 -05:00
Aníbal Limón
fcfa2ad466
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>
2015-07-14 10:51:40 -05:00
Aníbal Limón
07ace6e17c
rrs/tools/common.py: Add library with common functionality.
...
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-07-14 10:51:40 -05:00