Patchwork [bitbake-devel,2/2] hob: sstatemirror is standard also for file://.* regex

login
register
mail settings
Submitter Cristiana Voicu
Date July 22, 2013, 10:54 a.m.
Message ID <1374490451-8079-2-git-send-email-cristiana.voicu@intel.com>
Download mbox | patch
Permalink /patch/54171/
State New
Headers show

Comments

Cristiana Voicu - July 22, 2013, 10:54 a.m.
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
---
 .../lib/bb/ui/crumbs/hig/simplesettingsdialog.py   |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/bitbake/lib/bb/ui/crumbs/hig/simplesettingsdialog.py b/bitbake/lib/bb/ui/crumbs/hig/simplesettingsdialog.py
index e43080a..de924b1 100644
--- a/bitbake/lib/bb/ui/crumbs/hig/simplesettingsdialog.py
+++ b/bitbake/lib/bb/ui/crumbs/hig/simplesettingsdialog.py
@@ -322,8 +322,8 @@  class SimpleSettingsDialog (CrumbsDialog, SettingsUIHelper):
                 for sstatemirror in sstatemirrors:
                     sstatemirror_fields = [x for x in sstatemirror.split(' ') if x.strip()]
                     if len(sstatemirror_fields) == 2:
-                        if sstatemirror_fields[0] == "file://(.*)":
-                            sm_list = ["Standard", sstatemirror_fields[1], "file://(.*)"]
+                        if sstatemirror_fields[0] == "file://(.*)" or sstatemirror_fields[0] == "file://.*":
+                            sm_list = ["Standard", sstatemirror_fields[1], sstatemirror_fields[0]]
                         else:
                             sm_list = ["Custom", sstatemirror_fields[1], sstatemirror_fields[0]]
                         self.sstatemirrors_list.append(sm_list)