summaryrefslogtreecommitdiff
path: root/portato/db
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/db/eix_sql.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/portato/db/eix_sql.py b/portato/db/eix_sql.py
index 089d3ed..3a0c6e9 100644
--- a/portato/db/eix_sql.py
+++ b/portato/db/eix_sql.py
@@ -56,9 +56,10 @@ class EixSQLDatabase (SQLDatabase):
def _get():
with EixReader(self.cache) as eix:
for cat in eix.categories:
- if category is None or cat.name() == category:
- for pkg in cat.packages():
- yield (cat.name(), pkg.name(), pkg.name() in inst, False)
+ 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, p in inst, False)
connection.executemany("INSERT INTO packages (cat, name, inst, disabled) VALUES (?, ?, ?, ?)", _get())
connection.commit()
sion names. Thus removing the colon as an assignment operatorRené 'Necoro' Neumann2-6/+2 2009-07-05DocRené 'Necoro' Neumann1-1/+14 2009-07-05Install package_details.pyRené 'Necoro' Neumann1-1/+1 2009-07-05Sort plugins in the windowRené 'Necoro' Neumann2-13/+12 2009-07-05Port DependencyDetailRené 'Necoro' Neumann4-129/+118 2009-07-05Also port FilesDetailRené 'Necoro' Neumann3-43/+24 2009-07-05Also ported EbuildDetailRené 'Necoro' Neumann3-27/+14