From 3092203fa9398856538a51d558cca5210d2d1a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 12 Apr 2010 21:02:19 +0200 Subject: Descriptions may contain unicode --- portato/eix/parser.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'portato') diff --git a/portato/eix/parser.pyx b/portato/eix/parser.pyx index d4bd3af..6363b37 100644 --- a/portato/eix/parser.pyx +++ b/portato/eix/parser.pyx @@ -279,7 +279,7 @@ cdef class package: after_offset = ftell(cfile) self.name = string(file) - self.description = string(file) + self.description = unicode(string(file)) # skip the rest, as it is currently unneeded #self.provide = vector(file, number) -- cgit v1.2.3 From 39f786c905e1e78c283a1d3939876b0e6b1f86c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 12 Apr 2010 21:02:52 +0200 Subject: Fix error when no 'format' entry is in the db section --- portato/db/sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'portato') diff --git a/portato/db/sql.py b/portato/db/sql.py index f5dc257..581ebc4 100644 --- a/portato/db/sql.py +++ b/portato/db/sql.py @@ -47,7 +47,7 @@ class SQLDatabase (Database): updateFormat = False if "format" not in session or session["format"] != self.FORMAT: - debug("Need to update database format from '%s' to '%s'", session["format"], self.FORMAT) + debug("Need to update database format from '%s' to '%s'", session.get("format", "undefined"), self.FORMAT) session["format"] = self.FORMAT updateFormat = True -- cgit v1.2.3