[SCM] build.samba.org - branch master updated

Jelmer Vernooij jelmer at samba.org
Tue Nov 16 17:19:02 MST 2010


The branch, master has been updated
       via  c28ce63 Re-enable unicode encoding (required for storm).
      from  149f80f Don't unicode encode name.

http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit c28ce631c5288e9ba3c8cbe8a7d8aca1c30a6988
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Wed Nov 17 01:18:32 2010 +0100

    Re-enable unicode encoding (required for storm).

-----------------------------------------------------------------------

Summary of changes:
 buildfarm/hostdb.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildfarm/hostdb.py b/buildfarm/hostdb.py
index 24186c2..ed4e753 100644
--- a/buildfarm/hostdb.py
+++ b/buildfarm/hostdb.py
@@ -125,7 +125,7 @@ class HostDatabase(object):
         """Write out the web/"""
 
         for host in self.hosts():
-            yield "%s: %s\n" % (host.name, host.platform.encode("utf-8"))
+            yield "%s: %s\n" % (host.name.encode("utf-8"), host.platform.encode("utf-8"))
 
     def commit(self):
         pass
@@ -143,7 +143,7 @@ class PlainTextHostDatabase(HostDatabase):
         try:
             for l in f:
                 (host, platform) = l.split(":", 1)
-                ret[host] = platform.strip().decode("utf-8")
+                ret[host.decode("utf-8")] = platform.strip().decode("utf-8")
         finally:
             f.close()
         return cls(ret)


-- 
build.samba.org


More information about the samba-cvs mailing list