Skip to content

Commit 5ee0faa

Browse files
committed
vmupdate: answer "yes" to the import key question
When fetching repository metadata for the first time, dnf will ask for confirmation on importing metadata signing key. Since the key is imported from the local filesystem, it's safe to do, so do it automatically. QubesOS/qubes-issues#9807
1 parent 65eb613 commit 5ee0faa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vmupdate/agent/source/dnf/dnf_cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def refresh(self, hard_fail: bool) -> ProcessResult:
5353
cmd = [self.package_manager,
5454
"-q",
5555
"check-update",
56+
"--assumeyes",
5657
f"--setopt=skip_if_unavailable={int(not hard_fail)}"]
5758
result_check = self.run_cmd(cmd)
5859
# ret_code == 100 is not an error

0 commit comments

Comments
 (0)