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

scout-on-soldier: Redo pinning if we swap runtimes


For the normal scout runtime this happens automatically, because the
whole steam-runtime/ directory is deleted and replaced, but for the
scout-on-soldier setup we need to manage this ourselves.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent aff3c5d9
No related branches found
No related tags found
1 merge request!55populate-depot: Fix and test layered runtime
......@@ -39,8 +39,10 @@ usage () {
main () {
local error
local getopt_temp="help"
local ours
local runtime
local src
local theirs
local verbose=
if [ "${STEAM_LINUX_RUNTIME_VERBOSE-}" = 1 ]; then
......@@ -131,6 +133,21 @@ main () {
runtime="${here}/var/steam-runtime"
mkdir -p "$runtime"
if [ -e "$runtime/version.txt" ]; then
ours="$(cat "$runtime/version.txt" || echo none)"
else
ours=none
fi
theirs="$(cat "$src/version.txt")"
if [ "$ours" != "$theirs" ]; then
[ -z "$verbose" ] || log "scout runtime switched from '$ours' to '$theirs'"
rm -fr "$runtime"
mkdir -p "$runtime"
printf '%s\n' "$theirs" > "$runtime/version.txt"
fi
ln -fns "$src/amd64" "$runtime/"
ln -fns "$src/i386" "$runtime/"
ln -fns "$src/lib" "$runtime/"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment