diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-04-27 10:53:17 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-28 09:44:14 +0100 |
commit | 2bc3328b8b2a718221d2c206cc6f4d8cbc09e9c8 (patch) | |
tree | 92e339bc7541230d168a5e9ba814ab270053fbdb /meta/lib | |
parent | d768a803919f6c1cbd9f285290096d781002a712 (diff) | |
download | poky-2bc3328b8b2a718221d2c206cc6f4d8cbc09e9c8.tar.gz |
devtool: handle . in recipe name
Names such as glib-2.0 are valid (and used) recipe names, so we need to
support them.
Fixes [YOCTO #7643].
(From OE-Core master rev: b9fd8d4d4dfae72de2e81e9b14de072e12cecdcf)
(From OE-Core rev: 36df1bb9bb3c92d096118b74fdf11a243be3f7d5)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/recipeutils.py | 4 |
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): | |||
269 | def validate_pn(pn): | 269 | def 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-'): |