diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-11 07:55:37 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-11 07:56:39 -0700 |
commit | 9e89b4eec43cebddf5016a93f19a9d4f74fa114d (patch) | |
tree | 3cae87a901b7d210e442a676760edb703f049c93 /meta | |
parent | d0e55dd0ef92fef31976edfb920a021c313fa14e (diff) | |
download | poky-9e89b4eec43cebddf5016a93f19a9d4f74fa114d.tar.gz |
Revert "license.bbclass: fix copying license directories failed"
This reverts commit e58a1499accd74d3e6fe4f899711d4c680ebc18f.
It depends on other functionality not backported to dora.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/license.bbclass | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index 247b154f80..b00ebb12e2 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass | |||
@@ -68,16 +68,15 @@ license_create_manifest() { | |||
68 | if [ -n "${COPY_LIC_DIRS}" ]; then | 68 | if [ -n "${COPY_LIC_DIRS}" ]; then |
69 | for pkg in ${INSTALLED_PKGS}; do | 69 | for pkg in ${INSTALLED_PKGS}; do |
70 | mkdir -p ${IMAGE_ROOTFS}/usr/share/common-licenses/${pkg} | 70 | mkdir -p ${IMAGE_ROOTFS}/usr/share/common-licenses/${pkg} |
71 | pkged_pn="$(oe-pkgdata-util lookup-recipe ${PKGDATA_DIR} ${pkg})" | 71 | for lic in `ls ${LICENSE_DIRECTORY}/${pkg}`; do |
72 | for lic in `ls ${LICENSE_DIRECTORY}/${pkged_pn}`; do | ||
73 | # Really don't need to copy the generics as they're | 72 | # Really don't need to copy the generics as they're |
74 | # represented in the manifest and in the actual pkg licenses | 73 | # represented in the manifest and in the actual pkg licenses |
75 | # Doing so would make your image quite a bit larger | 74 | # Doing so would make your image quite a bit larger |
76 | if [ "${lic#generic_}" = "${lic}" ]; then | 75 | if [ "${lic#generic_}" = "${lic}" ]; then |
77 | cp ${LICENSE_DIRECTORY}/${pkged_pn}/${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/${pkg}/${lic} | 76 | cp ${LICENSE_DIRECTORY}/${pkg}/${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/${pkg}/${lic} |
78 | else | 77 | else |
79 | if [ ! -f ${IMAGE_ROOTFS}/usr/share/common-licenses/${lic} ]; then | 78 | if [ ! -f ${IMAGE_ROOTFS}/usr/share/common-licenses/${lic} ]; then |
80 | cp ${LICENSE_DIRECTORY}/${pkged_pn}/${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/ | 79 | cp ${LICENSE_DIRECTORY}/${pkg}/${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/ |
81 | fi | 80 | fi |
82 | ln -s ../${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/${pkg}/${lic} | 81 | ln -s ../${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/${pkg}/${lic} |
83 | fi | 82 | fi |