diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/__init__.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 760e24f039..672f1095dc 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -538,7 +538,11 @@ def fetcher_compare_revisions(): | |||
538 | return False | 538 | return False |
539 | 539 | ||
540 | def mirror_from_string(data): | 540 | def mirror_from_string(data): |
541 | return [ i.split() for i in (data or "").replace('\\n','\n').split('\n') if i ] | 541 | mirrors = (data or "").replace('\\n',' ').split() |
542 | # Split into pairs | ||
543 | if len(mirrors) % 2 != 0: | ||
544 | bb.warn('Invalid mirror data %s, should have paired members.' % data) | ||
545 | return list(zip(*[iter(mirrors)]*2)) | ||
542 | 546 | ||
543 | def verify_checksum(ud, d, precomputed={}): | 547 | def verify_checksum(ud, d, precomputed={}): |
544 | """ | 548 | """ |