[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lorax] Fix the regexp for matching the ld_linux executable.



Remove the double quotes from the resulting match object,
if there is more than one ld_linux file specified.
---
 src/pylorax/sysutils.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/pylorax/sysutils.py b/src/pylorax/sysutils.py
index fd8377e..f80018b 100644
--- a/src/pylorax/sysutils.py
+++ b/src/pylorax/sysutils.py
@@ -347,7 +347,7 @@ class Linker(object):
         libdirs = ":".join(libdirs)
 
         ld_linux = None
-        pattern = re.compile(r"^RTLDLIST=(?P<ld_linux>.*)$")
+        pattern = re.compile(r'^RTLDLIST="?(?P<ld_linux>.*?)"?$')
 
         with open(self.LDDBIN, "r") as f:
             for line in f:
-- 
1.6.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]