Skip to content

Commit

Permalink
Merge pull request #3689 from catfella/fix_ppa_detection
Browse files Browse the repository at this point in the history
Scripts/InstallFEX: update PPA URL
  • Loading branch information
Sonicadvance1 authored Jun 14, 2024
2 parents aa0f2c3 + f3e6ecb commit 9744d8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Scripts/InstallFEX.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import subprocess
import sys
import tempfile
import re

_Arch = None
def GetArch():
Expand Down Expand Up @@ -131,7 +132,7 @@ def GetCPUFeaturesVersion():
return _ArchVersion

_PPAInstalled = None
FEXPPA = "http://ppa.launchpad.net/fex-emu/fex/ubuntu"
FEXPPA_REGEX = r".*\/fex-emu\/fex\/ubuntu$"

def GetPPAStatus():
global _PPAInstalled
Expand All @@ -147,7 +148,7 @@ def GetPPAStatus():
LineSplit = Line.split(" ")

# 'status' 'URL' 'series' 'arch' 'type'
if LineSplit[1] == FEXPPA:
if re.match(FEXPPA_REGEX, LineSplit[1]):
_PPAInstalled = True
break

Expand Down

0 comments on commit 9744d8d

Please sign in to comment.