kodi/xbmc-12.0-do_not_require_lsb_release.patch

12 lines
523 B
Diff
Raw Normal View History

--- xbmc-12.0/xbmc/utils/SystemInfo.cpp 2013-01-29 15:20:27.000000000 +0100
+++ xbmc-12.0/xbmc/utils/SystemInfo.cpp-no_lsb.patch 2013-02-16 15:53:27.000000000 +0100
@@ -589,7 +589,7 @@
NULL };
CStdString result("");
- FILE* pipe = popen("unset PYTHONHOME; unset PYTHONPATH; lsb_release -d 2>/dev/null | cut -f2", "r");
+ FILE* pipe = popen("unset PYTHONHOME; unset PYTHONPATH; cat /etc/sysconfig/release 2>/dev/null", "r");
if (pipe)
{
char buffer[256] = {'\0'};