]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/package_deb: add PackageArch field
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 23 Jul 2012 21:42:26 +0000 (22:42 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jul 2012 13:39:49 +0000 (14:39 +0100)
If we want to query the PACKAGE_ARCH from the installed package (as we
do in order to be able to do a pkgdata lookup for example) then we need
to have this stored in its own field as this is not always the same as
the Architecture field for deb packages.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/package_deb.bbclass

index d09baeaa283a1d793e6fb8fbe3e49fb6a42d0865..48511dfe90b0d4972ab10fbb7e0598dc6792147d 100644 (file)
@@ -290,6 +290,7 @@ python do_package_deb () {
         fields.append(["Maintainer: %s\n", ['MAINTAINER']])
         fields.append(["Architecture: %s\n", ['DPKG_ARCH']])
         fields.append(["OE: %s\n", ['PN']])
+        fields.append(["PackageArch: %s\n", ['PACKAGE_ARCH']])
         fields.append(["Homepage: %s\n", ['HOMEPAGE']])
 
         # Package, Version, Maintainer, Description - mandatory