Commit 22355e34 authored by Frede Hundewadt's avatar Frede Hundewadt

Merge branch 'v1.x-stable' into 'master'

Add freeoffice

See merge request !5
parents 79b7f9af 43be0d54
......@@ -647,7 +647,14 @@
"description": "Microsoft Office Online",
"pkg": "ms-office-online",
"extra": []
}
},
{
"name": "FreeOffice",
"icon": "freeoffice",
"description": "Microsoft Office compatible suite",
"pkg": "freeoffice",
"extra": []
}
]
},
{
......
......@@ -8,7 +8,7 @@ import json
import tempfile
import requests
gi.require_version('Pamac', '1.0')
gi.require_version("Pamac", "8.0")
from gi.repository import Pamac
......
import gi
gi.require_version("Pamac", "8.0")
from gi.repository import Pamac
def pkg_exist(pkgname: str) -> []:
"""check if a package exist"""
config = Pamac.Config(conf_path="/etc/pamac.conf")
db = Pamac.Database(config=config)
return db.search_pkgs(pkgname)
# return bool(db.search_pkgs(pkgname))
for pkg in pkg_exist("chromium"):
print(pkg.get_name())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment