diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-14 22:49:35 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-14 22:49:35 +0200 |
commit | 2a945321cbc54c6acae73bc25d543e2af6f3e42b (patch) | |
tree | 5be26dec18cf822e57a9a25a0d45671d4dc29b15 /portato/db/eix_sql.py | |
parent | 0d877faef762319348b164dba98c159ac1ec4ecf (diff) | |
download | portato-2a945321cbc54c6acae73bc25d543e2af6f3e42b.tar.gz portato-2a945321cbc54c6acae73bc25d543e2af6f3e42b.tar.bz2 portato-2a945321cbc54c6acae73bc25d543e2af6f3e42b.zip |
Use sets instead of lists --> faster results
Diffstat (limited to 'portato/db/eix_sql.py')
-rw-r--r-- | portato/db/eix_sql.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/portato/db/eix_sql.py b/portato/db/eix_sql.py index ac31019..089d3ed 100644 --- a/portato/db/eix_sql.py +++ b/portato/db/eix_sql.py @@ -51,7 +51,7 @@ class EixSQLDatabase (SQLDatabase): @SQLDatabase.con def populate (self, category = None, connection = None): - 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)) def _get(): with EixReader(self.cache) as eix: |