[bitbake-devel,04/14] Hob: Improve the matching for runnable machine type

Submitted by Dongxiao Xu on March 29, 2012, 12:01 p.m.

Details

Message ID 6db924cb9886d60bb252277516c5649c66c99287.1333022081.git.dongxiao.xu@intel.com
State New
Headers show

Commit Message

Dongxiao Xu March 29, 2012, 12:01 p.m.
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 lib/bb/ui/crumbs/imagedetailspage.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/lib/bb/ui/crumbs/imagedetailspage.py b/lib/bb/ui/crumbs/imagedetailspage.py
index 276281d..46d55c8 100755
--- a/lib/bb/ui/crumbs/imagedetailspage.py
+++ b/lib/bb/ui/crumbs/imagedetailspage.py
@@ -268,7 +268,8 @@  class ImageDetailsPage (HobPage):
                 break
 
         for t in self.builder.parameters.runnable_machine_patterns:
-            if t in image_name:
+            mach_string = image_name.strip(self.builder.hob_image + '-')
+            if mach_string.startswith(t):
                 mach_runnable = True
                 break