Skip to content

Commit

Permalink
qvm-template: Fix type hints.
Browse files Browse the repository at this point in the history
  • Loading branch information
WillyPillow committed Aug 8, 2020
1 parent 6c873cd commit ed8fca6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qubesadmin/tools/qvm_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,8 +818,8 @@ def verify(rpmfile, reponame):

print('This will override changes made in the following VMs:',
file=sys.stderr)
for tpl in override_tpls:
print(' %s' % tpl, file=sys.stderr)
for name in override_tpls:
print(' %s' % name, file=sys.stderr)
confirm = ''
while confirm != 'y':
confirm = input('Are you sure? [y/N] ').lower()
Expand Down Expand Up @@ -1186,6 +1186,7 @@ def repolist(args: argparse.Namespace, app: qubesadmin.app.QubesBase) -> None:
for repo in args.disablerepo:
base.repos.get_matching(repo).disable()

repos: typing.List[dnf.repo.Repo]
if args.repos:
repos = []
for repo in args.repos:
Expand Down

0 comments on commit ed8fca6

Please sign in to comment.