Skip to content
Snippets Groups Projects
Commit 4c853479 authored by Simon McVittie's avatar Simon McVittie
Browse files

launch-options: Override PRESSURE_VESSEL_PREFIX when needed


If we have selected a ContainerRuntimeDepot, we might still need to
override PRESSURE_VESSEL_PREFIX to its default version of
pressure-vessel if there is a different PRESSURE_VESSEL_PREFIX in the
environment.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 99583941
No related branches found
No related tags found
No related merge requests found
......@@ -1848,7 +1848,11 @@ class Gui:
if isinstance(component, ContainerRuntimeDepot):
its_pv = component.pressure_vessel
if its_pv is None or pv.path != its_pv.path:
if (
its_pv is None
or pv.path != its_pv.path
or environ.get('PRESSURE_VESSEL_PREFIX') != pv.path
):
environ['PRESSURE_VESSEL_PREFIX'] = pv.path
else:
args = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment