summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/recipeutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py
index a0d78dde46..58e4028aed 100644
--- a/meta/lib/oe/recipeutils.py
+++ b/meta/lib/oe/recipeutils.py
@@ -449,8 +449,8 @@ def get_recipe_patched_files(d):
449def validate_pn(pn): 449def validate_pn(pn):
450 """Perform validation on a recipe name (PN) for a new recipe.""" 450 """Perform validation on a recipe name (PN) for a new recipe."""
451 reserved_names = ['forcevariable', 'append', 'prepend', 'remove'] 451 reserved_names = ['forcevariable', 'append', 'prepend', 'remove']
452 if not re.match('[0-9a-z-.]+', pn): 452 if not re.match('^[0-9a-z-.+]+$', pn):
453 return 'Recipe name "%s" is invalid: only characters 0-9, a-z, - and . are allowed' % pn 453 return 'Recipe name "%s" is invalid: only characters 0-9, a-z, -, + and . are allowed' % pn
454 elif pn in reserved_names: 454 elif pn in reserved_names:
455 return 'Recipe name "%s" is invalid: is a reserved keyword' % pn 455 return 'Recipe name "%s" is invalid: is a reserved keyword' % pn
456 elif pn.startswith('pn-'): 456 elif pn.startswith('pn-'):