From 5410eb9ccc84f21c365e5256f13bd3d28f060ca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= Date: Tue, 14 Jul 2015 15:31:57 -0500 Subject: [PATCH] rrs/tools/rrs_upgrade_history.py: Don't take into account git recipes without versioning. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don't detect upgrade in git recipes that don't have versioning only PV=git. Signed-off-by: Aníbal Limón --- rrs/tools/rrs_upgrade_history.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rrs/tools/rrs_upgrade_history.py b/rrs/tools/rrs_upgrade_history.py index 65ae625..e133d2f 100755 --- a/rrs/tools/rrs_upgrade_history.py +++ b/rrs/tools/rrs_upgrade_history.py @@ -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))