From 084e35916bb05852798683136ad4933853f96f6a Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Mon, 19 Apr 2021 16:50:57 +0100
Subject: [PATCH] CI: Adjust populate-depot invocation for latest version

The latest version in SteamLinuxRuntime requires a ${source_dir}/common
directory available.

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 debian/gitlab-ci.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/gitlab-ci.yml b/debian/gitlab-ci.yml
index 862381cb2..f835edd43 100644
--- a/debian/gitlab-ci.yml
+++ b/debian/gitlab-ci.yml
@@ -245,10 +245,12 @@ relocatable-install:
         set -eux
 
         PRESSURE_VESSEL=$(ls _build/scout/pressure-vessel-*-bin.tar.gz | head -1)
+        mkdir -p _build/depot-template/common
 
         if [ -n "${IMAGES_DOWNLOAD_URL}" ] && [ -n "${IMAGES_DOWNLOAD_CREDENTIAL}" ]; then
             python3 ./pressure-vessel/populate-depot.py \
             --depot=_build/depot \
+            --source-dir=_build/depot-template \
             --include-sdk \
             --unpack-runtimes \
             --credential-env IMAGES_DOWNLOAD_CREDENTIAL \
@@ -260,6 +262,7 @@ relocatable-install:
         else
             python3 ./pressure-vessel/populate-depot.py \
             --depot=_build/depot \
+            --source-dir=_build/depot-template \
             --unpack-runtimes \
             --pressure-vessel "${PRESSURE_VESSEL}" \
             --version latest-steam-client-public-beta \
-- 
GitLab