summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/actions.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-13 08:57:53 -0700
committerZac Medico <zmedico@gentoo.org>2010-10-13 08:57:53 -0700
commitf2fce065ab4d248268e60ca549480e6967cfbe1a (patch)
tree243703a45fa93252589174cb6b422a09d9c3ae9e /pym/_emerge/actions.py
parent26a2d51d5cff185677d5e54f3cfcae9fcaa666ae (diff)
downloadportage-f2fce065ab4d248268e60ca549480e6967cfbe1a.tar.gz
portage-f2fce065ab4d248268e60ca549480e6967cfbe1a.tar.bz2
portage-f2fce065ab4d248268e60ca549480e6967cfbe1a.zip
Show hostname when getaddrinfo fails.v2.2_rc95
Diffstat (limited to 'pym/_emerge/actions.py')
-rw-r--r--pym/_emerge/actions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index d395864b9..86e6a529f 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -2102,7 +2102,7 @@ def action_sync(settings, trees, mtimedb, myopts, myaction):
addrinfos = socket.getaddrinfo(hostname, None,
family, socket.SOCK_STREAM)
except socket.error as e:
- writemsg("!!! getaddrinfo failed: %s\n" % (e,), noiselevel=-1)
+ writemsg("!!! getaddrinfo failed for '%s': %s\n" % (hostname, e), noiselevel=-1)
# With some configurations we need to use the plain hostname
# rather than try to resolve the ip addresses (bug #340817).
uris.append(syncuri)