projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fefdf86
)
action_sync: handle IPv6 [ip] in SYNC
author
Zac Medico
<zmedico@gentoo.org>
Fri, 25 Feb 2011 05:58:44 +0000
(21:58 -0800)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 1 Mar 2011 20:51:02 +0000
(12:51 -0800)
This will fix bug #356375.
pym/_emerge/actions.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/actions.py
b/pym/_emerge/actions.py
index 82cacdb4e2aad2cb29e72bb6847e545f80301968..471adb31047a6cb4f592f9425630031495f9d37f 100644
(file)
--- 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: