From dedf5ac6e6232cfa68b07e0139a019b265c8eb2c Mon Sep 17 00:00:00 2001 From: WillyPillow Date: Sun, 21 Feb 2021 02:09:23 +0800 Subject: [PATCH] qvm-template: only ask for confirmation during install if something is being done --- qubesadmin/tools/qvm_template.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qubesadmin/tools/qvm_template.py b/qubesadmin/tools/qvm_template.py index 804bf02d..07dd3309 100644 --- a/qubesadmin/tools/qvm_template.py +++ b/qubesadmin/tools/qvm_template.py @@ -988,9 +988,12 @@ def verify(rpmfile, reponame, package_hdr=None): for name in dl_list: override_tpls.append(name) - confirm_action( - 'This will override changes made in the following VMs:', - override_tpls) + # Only confirm if we have something to do + # since confiming w/ an empty list is probably silly + if override_tpls: + confirm_action( + 'This will override changes made in the following VMs:', + override_tpls) package_hdrs = download(args, app, dl_list=dl_list,