From: Zac Medico Date: Fri, 25 Feb 2011 05:58:44 +0000 (-0800) Subject: action_sync: handle IPv6 [ip] in SYNC X-Git-Tag: v2.1.9.42~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=52c71cc0e82e3849e85594378bc321c36713521c;p=portage.git action_sync: handle IPv6 [ip] in SYNC This will fix bug #356375. --- diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index 82cacdb4e..471adb310 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -2068,7 +2068,8 @@ def action_sync(settings, trees, mtimedb, myopts, myaction): retries=0 proto, user_name, hostname, port = re.split( - "(rsync|ssh)://([^:/]+@)?([^:/]*)(:[0-9]+)?", syncuri, maxsplit=4)[1:5] + r"(rsync|ssh)://([^:/]+@)?(\[[:\da-fA-F]*\]|[^:/]*)(:[0-9]+)?", + syncuri, maxsplit=4)[1:5] if port is None: port="" if user_name is None: