qvm-template: Remove default 'repo_files' entry if other entries have been specified by the user.
This commit is contained in:
parent
c523d78d59
commit
42a741cac5
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user