Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lgsm/data/debian-10.csv
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ squad
st,libxml2-utils
steamcmd,lib32gcc1,lib32stdc++6,libsdl2-2.0-0:i386,steamcmd
stn
sven,libssl1.1:i386,zlib1g:i386
sven,zlib1g:i386
terraria
tf
tf2,libcurl4-gnutls-dev:i386
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/debian-11.csv
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ sol
squad
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
sven,zlib1g:i386
terraria
tf
tf2,libcurl4-gnutls-dev:i386
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/debian-9.csv
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ sol
squad
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
sven,zlib1g:i386
terraria
tf
tf2,libcurl4-gnutls-dev:i386
Expand Down
4 changes: 2 additions & 2 deletions lgsm/data/serverlist.csv
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ squad,squadserver,Squad,ubuntu-24.04
squad44,squad44server,Squad 44,ubuntu-24.04
st,stserver,Stationeers,ubuntu-24.04
stn,stnserver,Survive the Nights,ubuntu-24.04
sven,svenserver,Sven Co-op,ubuntu-20.04
sven,svenserver,Sven Co-op,ubuntu-24.04
terraria,terrariaserver,Terraria,ubuntu-24.04
tf,tfserver,The Front,ubuntu-24.04
tf2,tf2server,Team Fortress 2,ubuntu-24.04
Expand All @@ -126,7 +126,7 @@ ut2k4,ut2k4server,Unreal Tournament 2004,ubuntu-24.04
ut3,ut3server,Unreal Tournament 3,ubuntu-24.04
ut99,ut99server,Unreal Tournament 99,ubuntu-24.04
vh,vhserver,Valheim,ubuntu-24.04
vints,vintsserver,Vintage Story,ubuntu-22.04
vints,vintsserver,Vintage Story,ubuntu-24.04
vpmc,vpmcserver,Velocity Proxy MC,ubuntu-24.04
vs,vsserver,Vampire Slayer,ubuntu-24.04
wet,wetserver,Wolfenstein: Enemy Territory,ubuntu-24.04
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-16.04.csv
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ sol
squad
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
sven,zlib1g:i386
terraria
tf
tf2,libcurl4-gnutls-dev:i386
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-18.04.csv
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ sol
squad
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
sven,zlib1g:i386
terraria
tf
tf2,libcurl4-gnutls-dev:i386
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-20.04.csv
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ sol
squad
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
sven,zlib1g:i386
terraria
tf
tf2,libcurl4-gnutls-dev:i386
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-22.04.csv
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ sol
squad
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
sven,zlib1g:i386
terraria
tf
tf2,libcurl4-gnutls-dev:i386
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-23.04.csv
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ sol
squad
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
sven,zlib1g:i386
terraria
tf
tf2,libcurl4-gnutls-dev:i386
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-23.10.csv
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ sol
squad
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
sven,zlib1g:i386
terraria
tf
tf2,libcurl4-gnutls-dev:i386
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-24.04.csv
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ sol
squad
st,libxml2-utils
stn
sven,libssl1.1:i386,zlib1g:i386
sven,zlib1g:i386
terraria
tf
tf2,libcurl4-gnutls-dev:i386
Expand Down
20 changes: 19 additions & 1 deletion lgsm/modules/check_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ if [ "${commandname}" == "INSTALL" ]; then
fi
fi

info_distro.sh

# Will warn user if their distro is no longer supported by the vendor.
if [ -n "${distrosupport}" ]; then
if [ "${distrosupport}" == "unsupported" ]; then
Expand All @@ -359,7 +361,23 @@ if [ -n "${distrosupport}" ]; then
fi
fi

info_distro.sh
# These titles are only supported up to Ubuntu 22.04 (Jammy) and Debian 12 (Bookworm).
if { [ "${distroid}" == "ubuntu" ] && dpkg --compare-versions "${distroversion}" "gt" "22.04"; } || { [ "${distroidlike}" == "debian" ] && dpkg --compare-versions "${distroversion}" "gt" "12"; }; then
Copy link

Copilot AI Nov 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent use of distroidlike instead of distroid for Debian check. The variable distroidlike represents derivative relationships (e.g., Ubuntu's distroidlike is "debian"), not the actual distro ID. For actual Debian installations, this should check distroid == \"debian\" to properly detect Debian systems. The current logic may fail to detect actual Debian installations.

Copilot uses AI. Check for mistakes.
if [ "${shortname}" == "bf1942" ] || [ "${shortname}" == "bfv" ]; then
fn_print_failure_nl "${gamename} is not supported on ${distroname} (requires Ubuntu <= 22.04 or Debian <= 12)."
fn_script_log_fail "${gamename} is not supported on ${distroname}."
core_exit.sh
fi
fi

# These titles are only supported up to Ubuntu 20.04 and Debian 11 (and Debian-like derivatives).
if { [ "${distroid}" == "ubuntu" ] && dpkg --compare-versions "${distroversion}" "gt" "20.04"; } || { [ "${distroidlike}" == "debian" ] && dpkg --compare-versions "${distroversion}" "gt" "11"; }; then
Copy link

Copilot AI Nov 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent use of distroidlike instead of distroid for Debian check. The variable distroidlike represents derivative relationships (e.g., Ubuntu's distroidlike is "debian"), not the actual distro ID. For actual Debian installations, this should check distroid == \"debian\" to properly detect Debian systems. The current logic may fail to detect actual Debian installations.

Copilot uses AI. Check for mistakes.
if [ "${shortname}" == "onset" ] || [ "${shortname}" == "btl" ]; then
fn_print_failure_nl "${gamename} is not supported on ${distroname} (requires Ubuntu <= 20.04 or Debian <= 11)."
fn_script_log_fail "${gamename} is not supported on ${distroname}."
core_exit.sh
fi
fi

if [ ! -f "${tmpdir}/dependency-no-check.tmp" ] && [ ! -f "${datadir}/${distroid}-${distroversioncsv}.csv" ]; then
# Check that the distro dependency csv file exists.
Expand Down