turn off SRC_URI-based PACKAGE_ARCH mangling if requested
authorPhil Blundell <philb@gnu.org>
Thu, 27 Jan 2005 19:13:15 +0000 (19:13 +0000)
committerPhil Blundell <philb@gnu.org>
Thu, 27 Jan 2005 19:13:15 +0000 (19:13 +0000)
BKrev: 41f93d4bA7UVxRqWKvjaoryoPbopfQ

classes/base.bbclass

index 8c92ed6..6686d2e 100644 (file)
@@ -702,6 +702,8 @@ python () {
        if (old_arch == mach_arch):
                # Nothing to do
                return
+       if (bb.data.getVar('SRC_URI_OVERRIDES_PACKAGE_ARCH', d, 1) == '0'):
+               return
        paths = []
        for p in [ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/${P}", "${FILE_DIRNAME}/${PN}", "${FILE_DIRNAME}/files", "${FILE_DIRNAME}" ]:
                paths.append(bb.data.expand(os.path.join(p, mach_arch), d))