summaryrefslogtreecommitdiff
path: root/meta-openembedded/meta-python/recipes-devtools/python/python3-u-msgpack-python_2.8.0.bb
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>2025-03-07 12:43:20 +0300
committerPatrick Williams <patrick@stwcx.xyz>2025-04-17 17:01:14 +0300
commit5562ba89cfc493f292271e21f46e71b2ec6915b1 (patch)
tree1190b02ea766744acccb3d01afc76613efcb35d9 /meta-openembedded/meta-python/recipes-devtools/python/python3-u-msgpack-python_2.8.0.bb
parent36d626ab36102f241ce100f5cf485ef277c7e942 (diff)
downloadopenbmc-5562ba89cfc493f292271e21f46e71b2ec6915b1.tar.xz
bitbake: fetch2: Partial revert decodeurl() to not use the URI class
This partial reverts commit a5d569c94700f04b8193c6bccae5af619931b00f which changes decodeurl() to use the URI class to parse the URL instead of doing it itself. While reusing code is generally a good idea, using urllib.parse.urlparse() (which the URI class does) to parse the regular expression "URLs" that are used in PREMIRRORS and MIRRORS does not work. A regular expression URL containing https?://... would be silently ignored, while a URL using a negative lookahead such as git://(?!internal\.git\.server).*/.* would result in a cryptic error: Exception: re.error: missing ), unterminated subpattern at position 0 The problem is that urllib.parse.urlparse() treats the ? as the start of URL parameters and thus stops parsing whatever part of the URL it was parsing. Restore the old function and use it in the PREMIRRORS and MIRRORS code. (Bitbake rev: f8a7712754e6d0199a0d227fca288307b935368d) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit bae86fe618075f28b708d2c89d247937a75226fc) Change-Id: I5e5ace69ee5daa924ad28c5a161e2a2d251664b5
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python/python3-u-msgpack-python_2.8.0.bb')
0 files changed, 0 insertions, 0 deletions