Skip to content

Commit

Permalink
qvm-template: only ask for confirmation during install if something i…
Browse files Browse the repository at this point in the history
…s being done
  • Loading branch information
WillyPillow committed Feb 20, 2021
1 parent 764a56a commit dedf5ac
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions qubesadmin/tools/qvm_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit dedf5ac

Please sign in to comment.