qvm-template: cleanup install function
Remove now unused try/finally in install() and reduce indentation. No functional change.
This commit is contained in:
parent
f1424812b0
commit
fe369ce523
@ -808,7 +808,6 @@ def install(
|
|||||||
:param override_existing: Whether to override existing packages. Used for
|
:param override_existing: Whether to override existing packages. Used for
|
||||||
reinstall, upgrade, and downgrade operations
|
reinstall, upgrade, and downgrade operations
|
||||||
"""
|
"""
|
||||||
try:
|
|
||||||
keys = get_keys(args.keyring)
|
keys = get_keys(args.keyring)
|
||||||
|
|
||||||
unverified_rpm_list = [] # rpmfile, reponame
|
unverified_rpm_list = [] # rpmfile, reponame
|
||||||
@ -983,8 +982,6 @@ def install(
|
|||||||
package_hdr[rpm.RPMTAG_SUMMARY]
|
package_hdr[rpm.RPMTAG_SUMMARY]
|
||||||
tpl.features['template-description'] = \
|
tpl.features['template-description'] = \
|
||||||
package_hdr[rpm.RPMTAG_DESCRIPTION].replace('\n', '|')
|
package_hdr[rpm.RPMTAG_DESCRIPTION].replace('\n', '|')
|
||||||
finally:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def list_templates(args: argparse.Namespace,
|
def list_templates(args: argparse.Namespace,
|
||||||
app: qubesadmin.app.QubesBase, operation: str) -> None:
|
app: qubesadmin.app.QubesBase, operation: str) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user