]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/license: check license manifest for double records
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Tue, 11 Sep 2012 01:13:44 +0000 (04:13 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Sep 2012 13:44:54 +0000 (14:44 +0100)
Trivial typo bugfix, avoid multiple records in license.manifest.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/license.bbclass

index 0335f4195c03ddc4808a53687ac3f984f1947ba6..021ab2ee17b9ad4d7150eb78c20cbb43f91cfd49 100644 (file)
@@ -93,7 +93,7 @@ license_create_manifest() {
                pkged_lic="$(sed -n '/^LICENSE: /{ s/^LICENSE: //; s/[+|&()*]/ /g; s/  */ /g; p }' ${filename})"
                pkged_pv="$(sed -n 's/^PV: //p' ${filename})"
                # check to see if the package name exists in the manifest. if so, bail.
-               if ! grep -q "PACKAGE NAME: ${pkg}" ${filename}; then
+               if ! grep -q "^PACKAGE NAME: ${pkg}" ${LICENSE_MANIFEST}; then
                        # exclude local recipes
                        if [ ! "${pkged_pn}" = "*locale*" ]; then
                                echo "PACKAGE NAME:" ${pkg} >> ${LICENSE_MANIFEST}