[Python-modules-commits] r22018 - in packages/circuits/trunk/debian/patches (2 files)
eriol-guest at users.alioth.debian.org
eriol-guest at users.alioth.debian.org
Sat Jun 2 01:41:12 UTC 2012
Date: Saturday, June 2, 2012 @ 01:41:10
Author: eriol-guest
Revision: 22018
Added patch to force localhost as hostname in test_logger.py
Added:
packages/circuits/trunk/debian/patches/03_force-localhost-as-host-name.patch
Modified:
packages/circuits/trunk/debian/patches/series
Added: packages/circuits/trunk/debian/patches/03_force-localhost-as-host-name.patch
===================================================================
--- packages/circuits/trunk/debian/patches/03_force-localhost-as-host-name.patch (rev 0)
+++ packages/circuits/trunk/debian/patches/03_force-localhost-as-host-name.patch 2012-06-02 01:41:10 UTC (rev 22018)
@@ -0,0 +1,41 @@
+Description: Force localhost as hostname.
+Author: Daniele Tricoli <eriol at mornie.org>
+Forwarded: not-needed
+--- a/tests/web/test_logger.py
++++ b/tests/web/test_logger.py
+@@ -5,7 +5,7 @@
+ from StringIO import StringIO
+ except ImportError:
+ from io import StringIO
+-from socket import gaierror, gethostbyname, gethostname
++from socket import gaierror, gethostbyname
+
+ from circuits.web import Controller, Logger
+ from circuits.web.loggers import formattime
+@@ -43,7 +43,7 @@
+ format = logger.format
+
+ try:
+- address = gethostbyname(gethostname())
++ address = gethostbyname('localhost')
+ except gaierror:
+ address = "127.0.0.1"
+
+@@ -79,7 +79,7 @@
+ format = logger.format
+
+ try:
+- address = gethostbyname(gethostname())
++ address = gethostbyname('localhost')
+ except gaierror:
+ address = "127.0.0.1"
+
+@@ -117,7 +117,7 @@
+ format = logger.format
+
+ try:
+- address = gethostbyname(gethostname())
++ address = gethostbyname('localhost')
+ except gaierror:
+ address = "127.0.0.1"
+
Modified: packages/circuits/trunk/debian/patches/series
===================================================================
--- packages/circuits/trunk/debian/patches/series 2012-06-01 22:06:09 UTC (rev 22017)
+++ packages/circuits/trunk/debian/patches/series 2012-06-02 01:41:10 UTC (rev 22018)
@@ -1,2 +1,3 @@
01_use_issuetraker_instead_of_bitbucket.patch
02_remove_templatebuiltins_js.patch
+03_force-localhost-as-host-name.patch
More information about the Python-modules-commits
mailing list