Fix parsing of URLs with port numbers

This commit is contained in:
Alex Iribarren 2022-02-24 16:14:23 +01:00 committed by Tomas Kopecek
parent 6444cf144b
commit 9bc9680285
2 changed files with 15 additions and 1 deletions

View file

@ -301,7 +301,7 @@ class SCM(object):
if password is not None and not allow_password:
raise koji.GenericError('username:password format not supported: %s:%s'
% (user, password))
netloc = parsed_url.hostname
netloc = userhost[-1]
# check for empty path before we apply normpath
if not path: