DBRTools - added support for filtering using raw rombuild log
authorMattD <mattd@symbian.org>
Mon, 22 Mar 2010 12:19:15 +0000
changeset 211 fc3107523c38
parent 209 97a2261627a2
child 212 21d5b62bbd8e
DBRTools - added support for filtering using raw rombuild log
dbrtools/dbr/dbrutils.py
--- a/dbrtools/dbr/dbrutils.py	Mon Mar 22 11:35:48 2010 +0000
+++ b/dbrtools/dbr/dbrutils.py	Mon Mar 22 12:19:15 2010 +0000
@@ -266,10 +266,14 @@
   fixpath = re.compile('\\\\')
   leadingslash = re.compile('^%s' % fixpath.sub('/',epocroot()))
   newline = re.compile('\n')
+  epoc32 = re.compile('^epoc32');
+  trailingtab = re.compile('\t\d+') #normally in rombuild files...
   for line in f:
     line = newline.sub('',line)
-    name = string.lower(leadingslash.sub('',fixpath.sub('/',line)))  
-    files.add(name)
+    name = string.lower(leadingslash.sub('',fixpath.sub('/',line)))
+    if(epoc32.search(name)):
+      name = trailingtab.sub('',name) 
+      files.add(name)
   f.close()  
   return files