dom0-updates: migrate qubes-receive-updates script to use Admin API
Don't import qubes.xml directly.
This commit is contained in:
parent
1057309951
commit
1447ecad57
@ -25,7 +25,7 @@ import sys
|
||||
import subprocess
|
||||
import shutil
|
||||
import grp
|
||||
import qubes
|
||||
import qubesadmin
|
||||
|
||||
updates_dir = "/var/lib/qubes/updates"
|
||||
updates_rpm_dir = updates_dir + "/rpm"
|
||||
@ -129,7 +129,7 @@ def handle_dom0updates(updatevm):
|
||||
|
||||
|
||||
def main():
|
||||
app = qubes.Qubes()
|
||||
app = qubesadmin.Qubes()
|
||||
|
||||
updatevm = app.updatevm
|
||||
if updatevm is None:
|
||||
|
@ -46,6 +46,7 @@ BuildRequires: pandoc
|
||||
BuildRequires: qubes-utils-devel >= 3.1.3
|
||||
BuildRequires: qubes-libvchan-devel
|
||||
Requires: qubes-core-dom0
|
||||
Requires: python3-qubesadmin
|
||||
Requires: qubes-utils >= 3.1.3
|
||||
Requires: %{name}-kernel-install
|
||||
Requires: xdotool
|
||||
|
Loading…
Reference in New Issue
Block a user