]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
recipetool: create: fix port number parsing issue
authorMing Liu <liu.ming50@gmail.com>
Sun, 1 Apr 2018 21:15:27 +0000 (23:15 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 3 Apr 2018 22:53:20 +0000 (23:53 +0100)
commit6c951c5a5ea012f029f8a3aed9e3c9e3f81ac61e
treeb90224f4d05eac45fd4c9461a3c677a49977d2a9
parent73a6e7dd028a054d18a0dbfc28cfc7d4a9666bc7
recipetool: create: fix port number parsing issue

A flaw was found when I run:
$ recipetool create "ssh://git@xxx.xxx:7999/xxx.git"

the url turned out to be: "git://git@xxx.xxx/7999/xxx.git;protocol=ssh"
after parsing, the port number was parsed as part of the path, this is
definitely wrong and lead to fetching failures.

This issue could be fixed in reformat_git_uri, by filtering out port
numbers when formatting ":".

(From OE-Core rev: 4290e04b69360b5e1da9f37166015e30f66cb335)

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/recipetool/create.py