[bitbake-devel] [PATCH 20/20] fetch: allow regexps in mirror protocol
Enrico Scholz
enrico.scholz at sigma-chemnitz.de
Thu Jun 28 00:27:38 UTC 2012
Enrico Scholz <enrico.scholz at sigma-chemnitz.de> writes:
>>> - if i != uri_decoded[loc]:
>>> + if not re.match(i, uri_decoded[loc]):
>
> | FAIL: test_urilist2 (bb.tests.fetch.FetcherTest)
> | AssertionError: Lists differ: ['file:///somepath/downloads/b... != ['file:///someotherpath/downlo...
> | - ['file:///somepath/downloads/bitbake-1.0.tar.gz',
> | - 'file:///someotherpath/downloads/bitbake-1.0.tar.gz']
> | ? ^
> |
> | + ['file:///someotherpath/downloads/bitbake-1.0.tar.gz']
> | ? ^
>
> Nothing which seems to be related to the patch.
I have to correct me... the new line should be
| + if not re.match(i + '$', uri_decoded[loc]):
to match the complete protocol.
Enrico
More information about the bitbake-devel
mailing list