dom0-updates: migrate qubes-receive-updates script to use Admin API

Don't import qubes.xml directly.
This commit is contained in:
Marek Marczykowski-Górecki 2017-05-24 21:53:08 +02:00
parent 1057309951
commit 1447ecad57
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 3 additions and 2 deletions

View File

@ -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:

View File

@ -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