diff options
author | Eric Bénard <eric@eukrea.com> | 2010-09-21 00:33:42 +0200 |
---|---|---|
committer | Eric Bénard <eric@eukrea.com> | 2010-09-21 09:42:21 +0200 |
commit | 56fa8d7ad350fcbb5dedaa80c656da0bb59a2e7b (patch) | |
tree | 5c02d55dc229ab2c758b30d3f3ed827b7a1db7fd /classes/utils.bbclass | |
parent | 416da30aeabed3da6f7775d9da973d959aad45f2 (diff) | |
download | openembedded-56fa8d7ad350fcbb5dedaa80c656da0bb59a2e7b.tar.gz |
utils.bbclass: fix is_machine_specific
* base.bbclass can set a package's PACKAGE_ARCH to MACHINE_ARCH if
it finds file:// in the SRC_URI and the corresponding file is machine
specific (recipes/foo/foo-1.0/<some machine>/)
* but is_machine_specific actually fails to detect these files as
urldata.path is used instead of urldata.localpath thus preventing the
comparison of the file's path with machinepaths
* tested with bitbake HEAD & 1.8.18, with OE's tree alone and OE's tree
plus an overlay.
Signed-off-by: Eric Bénard <eric@eukrea.com>
Acked-by: Chris Larson <clarson@kergoth.com>
Acked-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'classes/utils.bbclass')
-rw-r--r-- | classes/utils.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/utils.bbclass b/classes/utils.bbclass index 0a7a045cc4..1c636beef6 100644 --- a/classes/utils.bbclass +++ b/classes/utils.bbclass @@ -54,7 +54,7 @@ def is_machine_specific(d): urldatadict = bb.fetch.init(d.getVar("SRC_URI", True).split(), d, True) for urldata in (urldata for urldata in urldatadict.itervalues() if urldata.type == "file"): - if any(urldata.path.startswith(mp + "/") for mp in machinepaths): + if any(urldata.localpath.startswith(mp + "/") for mp in machinepaths): return True def subprocess_setup(): |