This patch is probably all you need:

diff --git a/appstream2modaliases b/appstream2modaliases
index 1c3e6a2..7408107 100755
--- a/appstream2modaliases
+++ b/appstream2modaliases
@@ -14,7 +14,7 @@ import re
try:
    pool = AppStream.Pool()
    pool.load()
-    cpts = pool.get_components()
+    cpts = pool.get_components().asArray()
except AttributeError:
    # Handle old API too (before version 0.10)
    db = AppStream.Database()
diff --git a/isenkram/lookup.py b/isenkram/lookup.py
index e10a999..ee13c1b 100644
--- a/isenkram/lookup.py
+++ b/isenkram/lookup.py
@@ -74,7 +74,7 @@ def pkgs_handling_appstream_modaliases(modaliaslist):
    try:
        pool = AppStream.Pool()
        pool.load()
-        cpts = pool.get_components()
+        cpts = pool.get_components().asArray()
    except AttributeError:
        # Handle old API too (before version 0.10)
        db = AppStream.Database()

The queries are very inefficient though, those can likely be optimized
a lot. I'll look into that at a later time.

Cheers,
    Matthias

-- 
I welcome VSRE emails. See http://vsre.info/

Reply via email to