Setup - freedesktop_os_release not available on all versions (#274)

Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>

[ROCm/rocdecode commit: e961e300fb]
Este cometimento está contido em:
Kiriti GowdaeAryan Salmanpour criou e GitHub cometeu 2024-03-05 08:39:41 -05:00
1 ascendente cabcb78825
cometimento b98622cb15
1 ficheiro modificado
+1 -1
+1 -1
Ver ficheiro
@@ -125,7 +125,7 @@ if "Ubuntu" in platfromInfo:
os.system('sudo -v')
os.system('sudo '+linuxFlag+' '+linuxSystemInstall+' '+linuxSystemInstall_check +
' install vainfo libdrm-amdgpu-dev mesa-amdgpu-multimedia-devel')
if "22.04" in platform.freedesktop_os_release().get("VERSION_ID"):
if "22.04" in platform.version():
os.system('sudo '+linuxFlag+' '+linuxSystemInstall+' '+linuxSystemInstall_check +
' install libstdc++-12-dev')
else: