summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-11-19 14:15:55 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-01 21:32:04 +0000
commit21481bc17ad8ea2942a97e3473e429224e1631ff (patch)
tree1df7cedbad1686073652dd6d9bd05ae4010bc79f /meta/lib
parent671f41e1d15307964dccc298270f2a739c297f41 (diff)
downloadpoky-21481bc17ad8ea2942a97e3473e429224e1631ff.tar.gz
lib/oe/recipeutils: check in validate_pn() for names instead of filenames
Ensure that the user specifies just the name portion instead of a file name with extension. (We can't just look for . since there are recipe names such as "glib-2.0" that legitimately contain .). (From OE-Core rev: a4c6af737811adb2bca87e3896f8710738dd255e) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/recipeutils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py
index 119a68821b..8918facb5b 100644
--- a/meta/lib/oe/recipeutils.py
+++ b/meta/lib/oe/recipeutils.py
@@ -398,6 +398,8 @@ def validate_pn(pn):
398 return 'Recipe name "%s" is invalid: is a reserved keyword' % pn 398 return 'Recipe name "%s" is invalid: is a reserved keyword' % pn
399 elif pn.startswith('pn-'): 399 elif pn.startswith('pn-'):
400 return 'Recipe name "%s" is invalid: names starting with "pn-" are reserved' % pn 400 return 'Recipe name "%s" is invalid: names starting with "pn-" are reserved' % pn
401 elif pn.endswith(('.bb', '.bbappend', '.bbclass', '.inc', '.conf')):
402 return 'Recipe name "%s" is invalid: should be just a name, not a file name' % pn
401 return '' 403 return ''
402 404
403 405