From b06b4e5a57e8681caeb119964fbd17c68aa88760 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Fri, 23 Nov 2007 15:40:41 +0000 Subject: [PATCH] extend listAllCategories git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@760 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/databaseTools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/databaseTools.py b/libraries/databaseTools.py index 020018b10..d4bbe3952 100644 --- a/libraries/databaseTools.py +++ b/libraries/databaseTools.py @@ -2578,8 +2578,8 @@ class etpDatabase: def listAllCategories(self): dbLog.log(ETP_LOGPRI_INFO,ETP_LOGLEVEL_VERBOSE,"listAllCategories: called.") - self.cursor.execute('SELECT categories.category FROM baseinfo,categories WHERE baseinfo.idcategory = categories.idcategory') - return self.fetchall2set(self.cursor.fetchall()) + self.cursor.execute('SELECT categories.idcategory,categories.category FROM baseinfo,categories WHERE baseinfo.idcategory = categories.idcategory') + return self.cursor.fetchall() def listConfigProtectDirectories(self, mask = False): dbLog.log(ETP_LOGPRI_INFO,ETP_LOGLEVEL_VERBOSE,"listConfigProtectDirectories: called.")