Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 37124 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/lib/portage/bin/emerge (-1 / +9 lines)
Lines 2501-2507 Link Here
2501
				del ips[0]
2501
				del ips[0]
2502
			if ips==[]:
2502
			if ips==[]:
2503
				try:
2503
				try:
2504
					ips=socket.gethostbyname_ex(hostname)[2]
2504
					ip6sockets = socket.getaddrinfo(hostname,None,10,socket.SOCK_STREAM)
2505
					random.shuffle(ip6sockets)
2506
					for addrinfo in ip6sockets:
2507
						ips.append('[' + addrinfo[4][0] + ']')
2508
				except Exception, e:
2509
					print "No IPv6 record found, trying IPv4:",str(e)
2510
2511
				try:
2512
					ips.extend(socket.gethostbyname_ex(hostname)[2])
2505
				except SystemExit, e:
2513
				except SystemExit, e:
2506
					raise # Needed else can't exit
2514
					raise # Needed else can't exit
2507
				except Exception, e:
2515
				except Exception, e:

Return to bug 37124