Skip to content

Commit 6aa73f5

Browse files
authored
Merge pull request #2899 from cmitu/pcsx2-ppa
pcsx2: enable installation on Debian
2 parents 8c3441b + ec4ec70 commit 6aa73f5

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

scriptmodules/emulators/pcsx2.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ function depends_pcsx2() {
3535
fi
3636

3737
if [[ "$md_mode" == "install" ]]; then
38-
add-apt-repository -y ppa:pcsx2-team/pcsx2-daily
38+
# On Ubuntu, add the PCSX2 PPA to get the latest version
39+
[[ -n "${__os_ubuntu_ver}" ]] && add-apt-repository -y ppa:pcsx2-team/pcsx2-daily
3940
dpkg --add-architecture i386
4041
else
4142
rm -f /etc/apt/sources.list.d/pcsx2-team-ubuntu-pcsx2-daily-*.list
@@ -44,11 +45,17 @@ function depends_pcsx2() {
4445
}
4546

4647
function install_bin_pcsx2() {
47-
aptInstall pcsx2-unstable
48+
local version
49+
[[ -n "${__os_ubuntu_ver}" ]] && version="-unstable"
50+
51+
aptInstall "pcsx2$version"
4852
}
4953

5054
function remove_pcsx2() {
51-
aptRemove pcsx2-unstable
55+
local version
56+
[[ -n "${__os_ubuntu_ver}" ]] && version="-unstable"
57+
58+
aptRemove "pcsx2$version"
5259
rp_callModule pcsx2 depends remove
5360
}
5461

0 commit comments

Comments
 (0)