[DEV] set back pulseaudio
This commit is contained in:
parent
94c3c82543
commit
87bd7f8e7a
@ -25,13 +25,23 @@ class System(system.System):
|
|||||||
return;
|
return;
|
||||||
dst_data = tools.file_read_data("/usr/include/pulse/version.h")
|
dst_data = tools.file_read_data("/usr/include/pulse/version.h")
|
||||||
lines = dst_data.split("\n")
|
lines = dst_data.split("\n")
|
||||||
patern = "#define pa_get_headers_version() (\""
|
patern = "#define pa_get_headers_version() (\"" # " #corect edn error parsing
|
||||||
version = None
|
version = None
|
||||||
for line in lines:
|
for line in lines:
|
||||||
if line[:len(patern)] == patern:
|
if line[:len(patern)] == patern:
|
||||||
#Find the version line
|
#Find the version line
|
||||||
version = line[len(patern)]
|
offset = len(patern)
|
||||||
version2 = line[len(patern)+2]
|
version = ""
|
||||||
|
while offset < len(line) \
|
||||||
|
and line[offset] != '.':
|
||||||
|
version = line[offset]
|
||||||
|
offset += 1
|
||||||
|
offset += 1
|
||||||
|
version2 = ""
|
||||||
|
while offset < len(line) \
|
||||||
|
and line[offset] != '.':
|
||||||
|
version2 = line[offset]
|
||||||
|
offset += 1
|
||||||
debug.verbose("detect version '" + version + "'")
|
debug.verbose("detect version '" + version + "'")
|
||||||
break;
|
break;
|
||||||
if version == None:
|
if version == None:
|
Loading…
Reference in New Issue
Block a user