diff options
-rw-r--r-- | rrs/tools/upgrade_history_internal.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rrs/tools/upgrade_history_internal.py b/rrs/tools/upgrade_history_internal.py index 783e893619..88ab0a71ee 100644 --- a/rrs/tools/upgrade_history_internal.py +++ b/rrs/tools/upgrade_history_internal.py @@ -62,6 +62,10 @@ def _create_upgrade(recipe_data, layerbranch, ct, title, info, logger, initial=F pn = recipe_data.getVar('PN', True) pv = recipe_data.getVar('PV', True) + if '..' in pv or pv.endswith('.'): + logger.warn('Invalid version for recipe %s in commit %s, ignoring' % (recipe_data.getVar('FILE', True), ct)) + return + recipes = Recipe.objects.filter(pn=pn, layerbranch=layerbranch).order_by('id') if not recipes: logger.warn("%s: Not found in Layer branch %s." % |