From 42a741cac559ea5ca3ec858bb63091210cafd699 Mon Sep 17 00:00:00 2001 From: WillyPillow Date: Fri, 7 Aug 2020 15:02:40 +0800 Subject: [PATCH] qvm-template: Remove default 'repo_files' entry if other entries have been specified by the user. --- qubesadmin/tools/qvm_template.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qubesadmin/tools/qvm_template.py b/qubesadmin/tools/qvm_template.py index 39f360a..f8fed13 100644 --- a/qubesadmin/tools/qvm_template.py +++ b/qubesadmin/tools/qvm_template.py @@ -1198,6 +1198,11 @@ def main(args: typing.Optional[typing.Sequence[str]] = None, # on inputs where the first argument is an option, like 'qvm-template # remove --help'. The bug should be fixed in Python 3.9. + # If the user specified other repo files... + if len(p_args.repo_files) > 1: + # ...remove the default entry + p_args.repo_files.pop(0) + if app is None: app = qubesadmin.Qubes()