diff options
Diffstat (limited to 'scripts/lib/recipetool/create.py')
| -rw-r--r-- | scripts/lib/recipetool/create.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index 2fc9e0aa4e..a3710285bb 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py | |||
| @@ -383,8 +383,10 @@ def reformat_git_uri(uri): | |||
| 383 | # which causes decodeurl to fail getting the right host and path | 383 | # which causes decodeurl to fail getting the right host and path |
| 384 | if len(host.split(':')) > 1: | 384 | if len(host.split(':')) > 1: |
| 385 | splitslash = host.split(':') | 385 | splitslash = host.split(':') |
| 386 | host = splitslash[0] | 386 | # Port number should not be split from host |
| 387 | path = '/' + splitslash[1] + path | 387 | if not re.match('^[0-9]+$', splitslash[1]): |
| 388 | host = splitslash[0] | ||
| 389 | path = '/' + splitslash[1] + path | ||
| 388 | #Algorithm: | 390 | #Algorithm: |
| 389 | # if user is defined, append protocol=ssh or if a protocol is defined, then honor the user-defined protocol | 391 | # if user is defined, append protocol=ssh or if a protocol is defined, then honor the user-defined protocol |
| 390 | # if no user & password is defined, check for scheme type and append the protocol with the scheme type | 392 | # if no user & password is defined, check for scheme type and append the protocol with the scheme type |
