]> git.decadent.org.uk Git - dak.git/commit
daklib/utils.py: use socket.getfqdn() to determine the hostname
authorPhilipp Kern <pkern@debian.org>
Sat, 27 Feb 2010 09:02:42 +0000 (10:02 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sat, 27 Feb 2010 09:02:42 +0000 (10:02 +0100)
commit404ef4673e48845eff8c46c157d90d975f538916
tree88f6e15760716f74650b95450e0846804a8d89ff
parent205edf5bdc80fae72389ac15646cab9b14be1f0c
daklib/utils.py: use socket.getfqdn() to determine the hostname

To: debian-dak@lists.debian.org
Cc: Philipp Kern <pkern@debian.org>
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 <pkern@debian.org>
daklib/utils.py