From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pa0-f52.google.com ([209.85.220.52]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1U0Ags-0007GV-F0 for openembedded-core@lists.openembedded.org; Tue, 29 Jan 2013 13:53:30 +0100 Received: by mail-pa0-f52.google.com with SMTP id kp6so370788pab.25 for ; Tue, 29 Jan 2013 04:37:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=4pRQs4TDWPq2dD0mgCyVGbD+/WHrI/YyW/N49oMnEnc=; b=zyutMGEEfV6dYdDrC/DVtCMJgeS/x1NbnUTOxj4qvNv0jrxTDqHARvwXPF4T01sIDD qaUsiYicVGcKCb7KcGkRvzQX6yyXCNCRXWbGRhEzhBYwNxFSreNZTdS+zs/QEyGHlKKd rXjFdC1PAEL7cd/NYDSjlzBxJS19HqFEIof1aa/71JiU9wrPMHXbTmSD/946FljjAMPO oNuShrxYo7xa1SaASxcuDIO6WcdqrxKSdmwXax+BPAXeM+g3pv3qe2O4MExFliXnBy/0 cmBAUuWuE/XhrwpUyMUkpe+GbzyfNfYlvwp/wCKAWV+js2UTrVsSK2/BxcOJ/GAcOkGx noHA== X-Received: by 10.68.224.227 with SMTP id rf3mr1980715pbc.108.1359463069885; Tue, 29 Jan 2013 04:37:49 -0800 (PST) Received: from localhost (ip-62-24-80-7.net.upcbroadband.cz. [62.24.80.7]) by mx.google.com with ESMTPS id ql9sm8336216pbc.61.2013.01.29.04.37.47 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Jan 2013 04:37:48 -0800 (PST) From: Martin Jansa To: openembedded-core@lists.openembedded.org Date: Tue, 29 Jan 2013 13:37:40 +0100 Message-Id: <1359463060-12321-1-git-send-email-Martin.Jansa@gmail.com> X-Mailer: git-send-email 1.8.1.2 Subject: [PATCH] license: fix LICENSE_CREATE_PACKAGE to stay disabled by default X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2013 12:53:31 -0000 * as reported by Enrico on #oe 11:06:50 < ensc|w> JaMa: might this be caused by dc78ef91a2bf01efb8028c9afbe69e506e016265 which checks for 'd.getVar('LICENSE_CREATE_PACKAGE', True)' evaluating to 'True' for every string (including the default 0) Signed-off-by: Martin Jansa --- meta/classes/license.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index d4ebb26..9f38221 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass @@ -103,7 +103,7 @@ python do_populate_lic() { # it would be better to copy them in do_install_append, but find_license_filesa is python python perform_packagecopy_prepend () { enabled = d.getVar('LICENSE_CREATE_PACKAGE', True) - if d.getVar('CLASSOVERRIDE', True) == 'class-target' and enabled: + if d.getVar('CLASSOVERRIDE', True) == 'class-target' and enabled and enabled == "1": lic_files_paths = find_license_files(d) # LICENSE_FILES_DIRECTORY starts with '/' so os.path.join cannot be used to join D and LICENSE_FILES_DIRECTORY -- 1.8.1.2