summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/license.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 76749c4c29..7c4feb15ca 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -74,9 +74,9 @@ license_create_manifest() {
74 # Really don't need to copy the generics as they're 74 # Really don't need to copy the generics as they're
75 # represented in the manifest and in the actual pkg licenses 75 # represented in the manifest and in the actual pkg licenses
76 # Doing so would make your image quite a bit larger 76 # Doing so would make your image quite a bit larger
77 if [[ "${lic}" != "generic_"* ]]; then 77 if [ "${lic#generic_}" = "${lic}" ]; then
78 cp ${LICENSE_DIRECTORY}/${pkg}/${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/${pkg}/${lic} 78 cp ${LICENSE_DIRECTORY}/${pkg}/${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/${pkg}/${lic}
79 elif [[ "${lic}" == "generic_"* ]]; then 79 else
80 if [ ! -f ${IMAGE_ROOTFS}/usr/share/common-licenses/${lic} ]; then 80 if [ ! -f ${IMAGE_ROOTFS}/usr/share/common-licenses/${lic} ]; then
81 cp ${LICENSE_DIRECTORY}/${pkg}/${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/ 81 cp ${LICENSE_DIRECTORY}/${pkg}/${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/
82 fi 82 fi