qvm-template: cleanup install function

Remove now unused try/finally in install() and reduce indentation.

No functional change.
This commit is contained in:
Marek Marczykowski-Górecki 2021-01-30 05:39:59 +01:00
parent f1424812b0
commit fe369ce523
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -808,7 +808,6 @@ def install(
:param override_existing: Whether to override existing packages. Used for
reinstall, upgrade, and downgrade operations
"""
try:
keys = get_keys(args.keyring)
unverified_rpm_list = [] # rpmfile, reponame
@ -983,8 +982,6 @@ def install(
package_hdr[rpm.RPMTAG_SUMMARY]
tpl.features['template-description'] = \
package_hdr[rpm.RPMTAG_DESCRIPTION].replace('\n', '|')
finally:
pass
def list_templates(args: argparse.Namespace,
app: qubesadmin.app.QubesBase, operation: str) -> None: