def __init__(self):
     self.apt_cache = apt.Cache()
     self.pool = AppStream.Pool()
     self.pool.load()
     self.transacted = []
     f = '/usr/lib/python3/dist-packages/superx_appstore_backend/package_data.json'
     self.packages_json = open(f, 'r')
     self.packages_json = load(self.packages_json)
Beispiel #2
0
def _load_appstream_pool(pools, remote):
    pool = AppStream.Pool()
    pool.add_metadata_location(remote.get_appstream_dir().get_path())
    pool.set_cache_flags(AppStream.CacheFlags.NONE)
    pool.load()
    pools[remote.get_name()] = pool
Beispiel #3
0
 def __init__(self):
     self.apt_cache = apt.Cache()
     self.pool = AppStream.Pool()
     self.pool.load()
     self.transacted = []