rrs/tools/rrs_upgrade_history.py: Don't take into account git recipes

without versioning.

Don't detect upgrade in git recipes that don't have versioning only
PV=git.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
This commit is contained in:
Aníbal Limón 2015-07-14 15:31:57 -05:00
parent 87bef7fed5
commit c21f32b0ea

View File

@ -104,7 +104,10 @@ def _create_upgrade(recipe_data, layerbranch, ct, title, info, logger, initial=F
(npv, _, _) = get_recipe_pv_without_srcpv(pv,
get_pv_type(pv))
if vercmp_string(ppv, npv) == -1:
if npv == 'git':
logger.debug("%s: Avoiding upgrade to unversioned git." % \
(recipe.pn))
elif ppv == 'git' or vercmp_string(ppv, npv) == -1:
if initial is True:
logger.debug("%s: Update initial upgrade ( -> %s)." % \
(recipe.pn, pv))