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 09bd7fdb46..19d97b62d2 100644
--- a/meta/lib/oe/recipeutils.py
+++ b/meta/lib/oe/recipeutils.py
@@ -269,8 +269,8 @@ def get_recipe_patches(d):
269def validate_pn(pn): 269def validate_pn(pn):
270 """Perform validation on a recipe name (PN) for a new recipe.""" 270 """Perform validation on a recipe name (PN) for a new recipe."""
271 reserved_names = ['forcevariable', 'append', 'prepend', 'remove'] 271 reserved_names = ['forcevariable', 'append', 'prepend', 'remove']
272 if not re.match('[0-9a-z-]+', pn): 272 if not re.match('[0-9a-z-.]+', pn):
273 return 'Recipe name "%s" is invalid: only characters 0-9, a-z and - are allowed' % pn 273 return 'Recipe name "%s" is invalid: only characters 0-9, a-z, - and . are allowed' % pn
274 elif pn in reserved_names: 274 elif pn in reserved_names:
275 return 'Recipe name "%s" is invalid: is a reserved keyword' % pn 275 return 'Recipe name "%s" is invalid: is a reserved keyword' % pn
276 elif pn.startswith('pn-'): 276 elif pn.startswith('pn-'):