Skip to content

Commit 02aa0bc

Browse files
authored
Merge pull request #542 from Tuxliri/use-parsed-distro-in-dts-code-vnc-command-DTSW-7385
Revert "do not override distro (only daffy for now)"
2 parents 0ad71f8 + 6ba2116 commit 02aa0bc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

code/vnc/command.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ def command(shell: DTShell, args, **kwargs):
129129
project.ensure_recipe_updated()
130130
recipe: Optional[DTProject] = project.recipe
131131

132+
# custom VNC distro
133+
if parsed.distro:
134+
dtslogger.info(f"Using custom distro '{parsed.distro}'")
135+
else:
136+
parsed.distro = shell.profile.distro.name
137+
build_args.append(("DISTRO", parsed.distro))
132138

133139
# avoid weird silence
134140
if parsed.build_only and project.vnc_dockerfile is None:

0 commit comments

Comments
 (0)