From b8f21c31c4fa797afe979db087bfc161d08cf869 Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Thu, 10 Sep 2020 14:49:47 +0100
Subject: [PATCH] build-relocatable: Make sure s-r-t helpers go into their
 directory

Previously we didn't create it if it didn't exist, so the tools all
overwrote each other.

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 pressure-vessel/build-relocatable-install.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pressure-vessel/build-relocatable-install.py b/pressure-vessel/build-relocatable-install.py
index 79b08c6f3..03b5f6690 100755
--- a/pressure-vessel/build-relocatable-install.py
+++ b/pressure-vessel/build-relocatable-install.py
@@ -118,6 +118,8 @@ LIBCAPSULE_TOOLS = [
 
 def install(src, dst, mode=0o644):
     # type: (str, str, int) -> None
+
+    os.makedirs(os.path.dirname(dst), exist_ok=True)
     shutil.copy(src, dst)
 
     if os.path.isdir(dst):
@@ -342,6 +344,7 @@ def main():
                         installation,
                         'libexec',
                         'steam-runtime-tools-0',
+                        os.path.basename(tool),
                     ),
                 )
 
-- 
GitLab