summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorBeth Flanagan <elizabeth.flanagan@intel.com>2011-02-26 14:04:41 -0800
committerBeth Flanagan <elizabeth.flanagan@intel.com>2011-02-26 14:04:41 -0800
commitd041ab31a106e914d511a98b682e9df41ffc51e2 (patch)
tree9ddc577d94011016f8927292695c7a028a30b017 /meta
parent00dee01d4ba1aa58fb7d548ad808684d3afb4a5b (diff)
downloadpoky-d041ab31a106e914d511a98b682e9df41ffc51e2.tar.gz
Fixing my bad license parsing: license.bbclass
Fix to my bad license parsing. Also added the MIT generic license files. Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/license.bbclass7
-rw-r--r--meta/files/common-licenses/MIT6
l---------meta/files/common-licenses/MIT-style1
3 files changed, 11 insertions, 3 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 4e3cd1cbdf..9c4ccb31e3 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -66,9 +66,10 @@ python do_populate_lic() {
66 # I'm sure someone has written a logic parser for these fields, but if so, I don't know where it is. 66 # I'm sure someone has written a logic parser for these fields, but if so, I don't know where it is.
67 # So what I do is just link to every license mentioned in the license field. 67 # So what I do is just link to every license mentioned in the license field.
68 68
69 for license_type in (' '.join(license_types.replace('&', ' ').replace('+', ' ').replace('|', ' ') 69 for license_type in ((license_types.replace('+', '').replace('|', '&')
70 .replace('(', ' ').replace(')', ' ').replace(';', ' ').replace(',', ' ').split())): 70 .replace('(', '').replace(')', '').replace(';', '')
71 if os.path.isfile(os.path.join(generic_directory, license_type)): 71 .replace(',', '').replace(" ", "").split("&"))):
72if os.path.isfile(os.path.join(generic_directory, license_type)):
72 gen_lic_dest = os.path.join(bb.data.getVar('LICENSE_DIRECTORY', d, True), "common-licenses") 73 gen_lic_dest = os.path.join(bb.data.getVar('LICENSE_DIRECTORY', d, True), "common-licenses")
73 try: 74 try:
74 bb.mkdirhier(gen_lic_dest) 75 bb.mkdirhier(gen_lic_dest)
diff --git a/meta/files/common-licenses/MIT b/meta/files/common-licenses/MIT
new file mode 100644
index 0000000000..d136d5e3b0
--- /dev/null
+++ b/meta/files/common-licenses/MIT
@@ -0,0 +1,6 @@
1The MIT License
2
3Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
5The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/meta/files/common-licenses/MIT-style b/meta/files/common-licenses/MIT-style
new file mode 120000
index 0000000000..8ab70c0254
--- /dev/null
+++ b/meta/files/common-licenses/MIT-style
@@ -0,0 +1 @@
MIT \ No newline at end of file