Openembedded Bitbake Development
 help / color / mirror / Atom feed
* [PATCH] hob/imageconfigurationpage: a 'hob-image' appears listed in the base image combo box
@ 2012-10-08  9:01 Cristiana Voicu
  2012-10-08  9:47 ` Richard Purdie
  0 siblings, 1 reply; 2+ messages in thread
From: Cristiana Voicu @ 2012-10-08  9:01 UTC (permalink / raw)
  To: bitbake-devel

-remove this image from image combo box

[YOCTO #3230]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
---
 bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
index e1c7a67..32e5c45 100644
--- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
+++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
@@ -368,6 +368,7 @@ class ImageConfigurationPage (HobPage):
         if self.builder.parameters.image_black_pattern:
             for i in self.builder.parameters.image_black_pattern.split():
                 black_pattern.append(re.compile(i))
+        black_pattern.append("hob-image")
 
         it = image_model.get_iter_first()
         self._image_combo_disconnect_signal()
@@ -386,13 +387,13 @@ class ImageConfigurationPage (HobPage):
             if black_pattern:
                 allow = True
                 for pattern in black_pattern:
-                    if pattern.search(image_name):
+                    if image_name in pattern:
                         allow = False
                         break
             elif white_pattern:
                 allow = False
                 for pattern in white_pattern:
-                    if pattern.search(image_name):
+                    if image_name in pattern:
                         allow = True
                         break
             else:
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-08 10:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-08  9:01 [PATCH] hob/imageconfigurationpage: a 'hob-image' appears listed in the base image combo box Cristiana Voicu
2012-10-08  9:47 ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox