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

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

[ROCm/rocdecode commit: e961e300fb]
此提交包含在:
Kiriti Gowda
2024-03-05 05:39:41 -08:00
提交者 GitHub
父節點 cabcb78825
當前提交 b98622cb15
+1 -1
查看文件
@@ -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: