summaryrefslogtreecommitdiff
path: root/french/aster/files/patch-as_setup.py
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2006-09-24 12:36:11 +0000
committerThierry Thomas <thierry@FreeBSD.org>2006-09-24 12:36:11 +0000
commit622e7b61609046bc5171fcaed3b83f0c9e8fce7a (patch)
treef4b08e3e243165d0c0c4b71882e060715b6a93c7 /french/aster/files/patch-as_setup.py
parent- Unbroke (diff)
- Catch the exception risen by gethostbyaddr and set a "to be configured"
hostname to fix the build on pointyhat and unbreak; - Take maintainership.
Notes
Notes: svn path=/head/; revision=173705
Diffstat (limited to 'french/aster/files/patch-as_setup.py')
-rw-r--r--french/aster/files/patch-as_setup.py14
1 files changed, 14 insertions, 0 deletions
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: