From 622e7b61609046bc5171fcaed3b83f0c9e8fce7a Mon Sep 17 00:00:00 2001 From: Thierry Thomas Date: Sun, 24 Sep 2006 12:36:11 +0000 Subject: - Catch the exception risen by gethostbyaddr and set a "to be configured" hostname to fix the build on pointyhat and unbreak; - Take maintainership. --- french/aster/files/patch-as_setup.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 french/aster/files/patch-as_setup.py (limited to 'french/aster/files/patch-as_setup.py') diff --git a/french/aster/files/patch-as_setup.py b/french/aster/files/patch-as_setup.py new file mode 100644 index 000000000000..43e3a50eace2 --- /dev/null +++ b/french/aster/files/patch-as_setup.py @@ -0,0 +1,14 @@ +--- as_setup.py.orig Wed Jun 28 18:04:25 2006 ++++ as_setup.py Sun Sep 24 12:23:18 2006 +@@ -1170,7 +1170,10 @@ + from socket import gethostname, gethostbyaddr + if host==None: + host = gethostname() +- fqn, alias, ip = gethostbyaddr(host) ++ try: ++ fqn, alias, ip = gethostbyaddr(host) ++ except: ++ fqn='put-your-host-name.here' + if fqn.find('localhost')>-1: + alias=[a for a in alias if a.find('localhost')<0] + if len(alias)>0: -- cgit v1.2.3