summaryrefslogtreecommitdiff
path: root/portato/db/sql.py
diff options
context:
space:
mode:
Diffstat (limited to 'portato/db/sql.py')
-rw-r--r--portato/db/sql.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/portato/db/sql.py b/portato/db/sql.py
index db66764..e79a27d 100644
--- a/portato/db/sql.py
+++ b/portato/db/sql.py
@@ -166,7 +166,7 @@ class SQLDatabase (Database):
def populate (self, category = None, connection = None):
def _get():
# get the lists
- inst = system.find_packages(pkgSet = system.SET_INSTALLED, key=category, with_version = False)
+ inst = set(system.find_packages(pkgSet = system.SET_INSTALLED, key=category, with_version = False))
for p in system.find_packages(key = category, with_version = False):
cat, pkg = p.split("/")
@@ -247,3 +247,4 @@ class SQLDatabase (Database):
self._restrict = "AND (name LIKE '%%%(restrict)s%%' OR cat LIKE '%(restrict)s%%')" % {"restrict":restrict}
restrict = property(get_restrict, set_restrict)
+ con = staticmethod(con)
© 'Necoro' Neumann1-266/+0 2013-09-29Use $HOST instead of Cauchiy in titleRenĂ© 'Necoro' Neumann1-1/+1 2013-09-24Remove herbstluftwmRenĂ© 'Necoro' Neumann1-1/+0 2013-09-24Conky changesRenĂ© 'Necoro' Neumann2-5/+13 2013-09-15Remove trailing slash from \~ulpRenĂ© 'Necoro' Neumann1-1/+1 2013-09-15Make cci explicitly use python2RenĂ© 'Necoro' Neumann1-1/+1 2013-09-10Node/NPM preparationRenĂ© 'Necoro' Neumann3-1/+13