| Submitter | Dongxiao Xu |
|---|---|
| Date | April 9, 2012, 8:41 a.m. |
| Message ID | <f01e8ecd2ba0e2fc69e168a6936145d54e44651a.1333960654.git.dongxiao.xu@intel.com> |
| Download | mbox | patch |
| Permalink | /patch/25361/ |
| State | Accepted |
| Commit | 7b81389566cb27451557ca11ec8ed40ef2630543 |
| Headers | show |
Comments
Patch
diff --git a/lib/bb/ui/crumbs/imagedetailspage.py b/lib/bb/ui/crumbs/imagedetailspage.py index b685d11..277f9d4 100755 --- a/lib/bb/ui/crumbs/imagedetailspage.py +++ b/lib/bb/ui/crumbs/imagedetailspage.py @@ -272,8 +272,7 @@ class ImageDetailsPage (HobPage): def test_mach_runnable(self, image_name): mach_runnable = False for t in self.builder.parameters.runnable_machine_patterns: - mach_string = image_name.strip(self.builder.hob_image + '-') - if mach_string.startswith(t): + if t in image_name: mach_runnable = True break return mach_runnable
Sometimes, users may open an image that is not built by Hob, therefore its image name is not started with "hob-image-". This commit sets a looser rule for runnable image matching. This fixes [YOCTO #2240] Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> --- lib/bb/ui/crumbs/imagedetailspage.py | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)