diff options
-rw-r--r-- | meta/lib/oeqa/selftest/devtool.py | 5 | ||||
-rw-r--r-- | scripts/lib/recipetool/create.py | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/meta/lib/oeqa/selftest/devtool.py b/meta/lib/oeqa/selftest/devtool.py index e992dcf771..713f2c5d63 100644 --- a/meta/lib/oeqa/selftest/devtool.py +++ b/meta/lib/oeqa/selftest/devtool.py | |||
@@ -46,7 +46,10 @@ class DevtoolBase(oeSelfTest): | |||
46 | if needvalue is None: | 46 | if needvalue is None: |
47 | self.fail('Variable %s should not appear in recipe') | 47 | self.fail('Variable %s should not appear in recipe') |
48 | if isinstance(needvalue, set): | 48 | if isinstance(needvalue, set): |
49 | value = set(value.split()) | 49 | if var == 'LICENSE': |
50 | value = set(value.split(' & ')) | ||
51 | else: | ||
52 | value = set(value.split()) | ||
50 | self.assertEqual(value, needvalue, 'values for %s do not match' % var) | 53 | self.assertEqual(value, needvalue, 'values for %s do not match' % var) |
51 | 54 | ||
52 | 55 | ||
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index c1819b6c66..cb1c80434c 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py | |||
@@ -787,10 +787,12 @@ def handle_license_vars(srctree, lines_before, handled, extravalues, d): | |||
787 | lines_before.append('# your responsibility to verify that the values are complete and correct.') | 787 | lines_before.append('# your responsibility to verify that the values are complete and correct.') |
788 | if len(licvalues) > 1: | 788 | if len(licvalues) > 1: |
789 | lines_before.append('#') | 789 | lines_before.append('#') |
790 | lines_before.append('# NOTE: multiple licenses have been detected; if that is correct you should separate') | 790 | lines_before.append('# NOTE: multiple licenses have been detected; they have been separated with &') |
791 | lines_before.append('# these in the LICENSE value using & if the multiple licenses all apply, or | if there') | 791 | lines_before.append('# in the LICENSE value for now since it is a reasonable assumption that all') |
792 | lines_before.append('# is a choice between the multiple licenses. If in doubt, check the accompanying') | 792 | lines_before.append('# of the licenses apply. If instead there is a choice between the multiple') |
793 | lines_before.append('# documentation to determine which situation is applicable.') | 793 | lines_before.append('# licenses then you should change the value to separate the licenses with |') |
794 | lines_before.append('# instead of &. If there is any doubt, check the accompanying documentation') | ||
795 | lines_before.append('# to determine which situation is applicable.') | ||
794 | if lic_unknown: | 796 | if lic_unknown: |
795 | lines_before.append('#') | 797 | lines_before.append('#') |
796 | lines_before.append('# The following license files were not able to be identified and are') | 798 | lines_before.append('# The following license files were not able to be identified and are') |
@@ -814,7 +816,7 @@ def handle_license_vars(srctree, lines_before, handled, extravalues, d): | |||
814 | licenses = [pkg_license] | 816 | licenses = [pkg_license] |
815 | else: | 817 | else: |
816 | lines_before.append('# NOTE: Original package metadata indicates license is: %s' % pkg_license) | 818 | lines_before.append('# NOTE: Original package metadata indicates license is: %s' % pkg_license) |
817 | lines_before.append('LICENSE = "%s"' % ' '.join(licenses)) | 819 | lines_before.append('LICENSE = "%s"' % ' & '.join(licenses)) |
818 | lines_before.append('LIC_FILES_CHKSUM = "%s"' % ' \\\n '.join(lic_files_chksum)) | 820 | lines_before.append('LIC_FILES_CHKSUM = "%s"' % ' \\\n '.join(lic_files_chksum)) |
819 | lines_before.append('') | 821 | lines_before.append('') |
820 | handled.append(('license', licvalues)) | 822 | handled.append(('license', licvalues)) |