From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com ([134.134.136.20]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1RclP2-00015l-Ra for openembedded-core@lists.openembedded.org; Mon, 19 Dec 2011 23:09:49 +0100 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 19 Dec 2011 14:02:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,351,1309762800"; d="scan'208";a="89247824" Received: from envy.jf.intel.com ([10.7.201.175]) by orsmga002.jf.intel.com with ESMTP; 19 Dec 2011 14:02:25 -0800 From: Beth Flanagan To: openembedded-core@lists.openembedded.org Date: Mon, 19 Dec 2011 13:50:25 -0800 Message-Id: X-Mailer: git-send-email 1.7.1 In-Reply-To: References: Subject: [PATCH 1/1] license: Fix manifest conditional X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2011 22:09:49 -0000 The manifest conditionals COPY_LIC_MANIFEST and COPY_LIC_DIRS were returning true due to missing quotes in the bash test. This made images larger than expected. Signed-off-by: Beth Flanagan --- meta/classes/license.bbclass | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index 6e82bd9..d351b5a 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass @@ -110,10 +110,10 @@ license_create_manifest() { # if you are concerned about license compliance # and delivery this should cover all your bases - if [ -n ${COPY_LIC_MANIFEST} ]; then + if [ -n "${COPY_LIC_MANIFEST}" ]; then mkdir -p ${IMAGE_ROOTFS}/usr/share/common-licenses/ cp ${LICENSE_DIRECTORY}/${IMAGE_NAME}/license.manifest ${IMAGE_ROOTFS}/usr/share/common-licenses/license.manifest - if [ -n ${COPY_LIC_DIRS} ]; then + if [ -n "${COPY_LIC_DIRS}" ]; then for pkg in ${INSTALLED_PKGS}; do mkdir -p ${IMAGE_ROOTFS}/usr/share/common-licenses/${pkg} for lic in `ls ${LICENSE_DIRECTORY}/${pkged_pn}`; do -- 1.7.1