From: Philipp Kern Date: Sat, 27 Feb 2010 09:02:42 +0000 (+0100) Subject: daklib/utils.py: use socket.getfqdn() to determine the hostname X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=404ef4673e48845eff8c46c157d90d975f538916;hp=404ef4673e48845eff8c46c157d90d975f538916;p=dak.git daklib/utils.py: use socket.getfqdn() to determine the hostname To: debian-dak@lists.debian.org Cc: Philipp Kern Date: Tue, 23 Feb 2010 11:35:20 +0100 Resent-From: debian-dak@lists.debian.org The current socket.gethostbyaddr(socket.gethostname()) fails horribly on our IPv6 enabled machine. What we really want is the FQDN of the host so let's use socket's getfqdn(). Of course that needs proper setup of the hostname in the system, but I think we can rely on that working. Signed-off-by: Philipp Kern ---