Source: isenkram
Version: 0.24
Severity: important
Tags: patch

Hi!
The latest AppStream release changed its API.
Please apply the attached patch to make Isenkram work with the AppStream
version in unstable.
Cheers,
    Matthias
commit b5da93d946daa8fbe3aed54d6483593714af0bb0
Author: Matthias Klumpp <matth...@tenstral.net>
Date:   Wed Aug 31 18:44:43 2016 +0200

    Support AppStream 0.10

diff --git a/isenkram/lookup.py b/isenkram/lookup.py
index d56bacc..963f30f 100644
--- a/isenkram/lookup.py
+++ b/isenkram/lookup.py
@@ -94,10 +94,10 @@ def pkgs_handling_appstream_modaliases(modaliaslist):
     thepkgs = {}
     gi.require_version('AppStream', '1.0')
     from gi.repository import AppStream
-    db = AppStream.Database()
-    db.open()
+    pool = AppStream.Pool()
+    pool.load()
 
-    cpts = db.get_all_components()
+    cpts = pool.get_components()
     ma_cpts = list()
     for cpt in cpts:
         provided = cpt.get_provided_for_kind(AppStream.ProvidedKind.MODALIAS)

Reply via email to