[3/7] classes/package_deb: add PackageArch field

Submitted by Paul Eggleton on July 25, 2012, 6:42 p.m. | Patch ID: 33059


Message ID e3908dd6678604933b39f7b4befb4f4486a5cd37.1343241383.git.paul.eggleton@linux.intel.com
State New
Headers show

Commit Message

Paul Eggleton July 25, 2012, 6:42 p.m.
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>
 meta/classes/package_deb.bbclass |    1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index d09baea..48511df 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -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