qvm-template: Remove default 'repo_files' entry if other entries have been specified by the user.

This commit is contained in:
WillyPillow 2020-08-07 15:02:40 +08:00
parent c523d78d59
commit 42a741cac5
No known key found for this signature in database
GPG Key ID: 3839E194B1415A9C

View File

@ -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 # on inputs where the first argument is an option, like 'qvm-template
# remove --help'. The bug should be fixed in Python 3.9. # 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: if app is None:
app = qubesadmin.Qubes() app = qubesadmin.Qubes()