From f254bd593f3c1842658f4fb57fa87ed77d9fe993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Fri, 5 Mar 2010 02:24:50 +0100 Subject: Previous commits done more correct :P --- portato/db/eix_sql.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'portato/db/eix_sql.py') diff --git a/portato/db/eix_sql.py b/portato/db/eix_sql.py index 39e556b..fd145cc 100644 --- a/portato/db/eix_sql.py +++ b/portato/db/eix_sql.py @@ -42,7 +42,7 @@ class EixSQLDatabase (SQLDatabase): SQLDatabase.__init__(self, session) def search_types(self): - return Database.SEARCH_NAME | Database.SEARCH_DESCRIPTION + return self.SEARCH_NAME | self.SEARCH_DESCRIPTION def updated (self): mtime = os.stat(self.cache).st_mtime @@ -66,7 +66,7 @@ class EixSQLDatabase (SQLDatabase): if category is None or cat.name == category: for pkg in cat.packages: p = "%s/%s" % (cat.name, pkg.name) - yield (cat.name, pkg.name, pkg.desription, p in inst, False) + yield (cat.name, pkg.name, pkg.description, p in inst, False) - connection.executemany("INSERT INTO packages (cat, name, descr, inst, disabled) VALUES (?, ?, ?, ?)", _get()) + connection.executemany("INSERT INTO packages (cat, name, descr, inst, disabled) VALUES (?, ?, ?, ?, ?)", _get()) connection.commit() -- cgit v1.2.3