diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2013-07-22 10:54:10 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-07-29 15:25:08 +0100 |
commit | e28904e1de029a1ba3a19df766d698a31d067161 (patch) | |
tree | 06f6dbe583dc4e832bbafb0976bfce17076bb99d /bitbake | |
parent | e605ecfd95d2b1573cb51de01c2e0c72e10b8ae0 (diff) | |
download | poky-e28904e1de029a1ba3a19df766d698a31d067161.tar.gz |
bitbake: hob: changed the split of SSTATE_MIRRORS variable
Until now the split made searching the string "file://", but
this is not ok when SSTATE_VARIABLE has the following form:
SSTATE_MIRRORS ?= "\
file://.* http://someserver.tld/share/sstate/PATH \n \
file://.* file:///some/local/dir/sstate/PATH"
In the documentation I've found that \n is the list separator.
[YOCTO #4857]
(Bitbake rev: 73bcd96928cb2df390e1fc6d3a8b7ce3e9d546a4)
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hig/simplesettingsdialog.py | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hig/simplesettingsdialog.py b/bitbake/lib/bb/ui/crumbs/hig/simplesettingsdialog.py index c1bd45f432..e43080a162 100644 --- a/bitbake/lib/bb/ui/crumbs/hig/simplesettingsdialog.py +++ b/bitbake/lib/bb/ui/crumbs/hig/simplesettingsdialog.py | |||
@@ -310,7 +310,6 @@ class SimpleSettingsDialog (CrumbsDialog, SettingsUIHelper): | |||
310 | 310 | ||
311 | sub_vbox = gtk.VBox(False) | 311 | sub_vbox = gtk.VBox(False) |
312 | advanced_vbox.pack_start(sub_vbox, gtk.TRUE, gtk.TRUE, 0) | 312 | advanced_vbox.pack_start(sub_vbox, gtk.TRUE, gtk.TRUE, 0) |
313 | searched_string = "file://" | ||
314 | 313 | ||
315 | if self.sstatemirrors_changed == 0: | 314 | if self.sstatemirrors_changed == 0: |
316 | self.sstatemirrors_changed = 1 | 315 | self.sstatemirrors_changed = 1 |
@@ -319,16 +318,10 @@ class SimpleSettingsDialog (CrumbsDialog, SettingsUIHelper): | |||
319 | sm_list = ["Standard", "", "file://(.*)"] | 318 | sm_list = ["Standard", "", "file://(.*)"] |
320 | self.sstatemirrors_list.append(sm_list) | 319 | self.sstatemirrors_list.append(sm_list) |
321 | else: | 320 | else: |
322 | while sstatemirrors.find(searched_string) != -1: | 321 | sstatemirrors = [x for x in sstatemirrors.split('\\n')] |
323 | if sstatemirrors.find(searched_string,1) != -1: | 322 | for sstatemirror in sstatemirrors: |
324 | sstatemirror = sstatemirrors[:sstatemirrors.find(searched_string,1)] | ||
325 | sstatemirrors = sstatemirrors[sstatemirrors.find(searched_string,1):] | ||
326 | else: | ||
327 | sstatemirror = sstatemirrors | ||
328 | sstatemirrors = sstatemirrors[1:] | ||
329 | |||
330 | sstatemirror_fields = [x for x in sstatemirror.split(' ') if x.strip()] | 323 | sstatemirror_fields = [x for x in sstatemirror.split(' ') if x.strip()] |
331 | if len(sstatemirror_fields): | 324 | if len(sstatemirror_fields) == 2: |
332 | if sstatemirror_fields[0] == "file://(.*)": | 325 | if sstatemirror_fields[0] == "file://(.*)": |
333 | sm_list = ["Standard", sstatemirror_fields[1], "file://(.*)"] | 326 | sm_list = ["Standard", sstatemirror_fields[1], "file://(.*)"] |
334 | else: | 327 | else: |