From 5877f4b4f77ef766b9afdfdbef68b84cd79dcbe0 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Mon, 5 Mar 2012 17:34:59 +0400 Subject: [PATCH] Fix detect driver from xorg.conf --- pym/cl_fill.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/cl_fill.py b/pym/cl_fill.py index d183877..fb21ae7 100644 --- a/pym/cl_fill.py +++ b/pym/cl_fill.py @@ -427,8 +427,8 @@ class fillVars(varsShare): matchSect = re.search(r'Section "Device".*?EndSection', open('/etc/X11/xorg.conf').read(),re.S) if matchSect: - resDriver = re.search(r'^\S*Driver\s*"([^"]+)"', - matchSect.group(0),re.S) + resDriver = re.search(r'^\s*Driver\s*"([^"]+)"', + matchSect.group(0),re.M) if resDriver and resDriver.group(1) in list_available_drivers: return resDriver.group(1)