[csw-devel] SF.net SVN: gar:[20980] csw/mgar/gar/v2/lib/python/inspective_package.py

chninkel at users.sourceforge.net chninkel at users.sourceforge.net
Sat May 4 11:56:05 CEST 2013


Revision: 20980
          http://gar.svn.sourceforge.net/gar/?rev=20980&view=rev
Author:   chninkel
Date:     2013-05-04 09:56:05 +0000 (Sat, 04 May 2013)
Log Message:
-----------
do not process the symtab symbol table section

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/inspective_package.py

Modified: csw/mgar/gar/v2/lib/python/inspective_package.py
===================================================================
--- csw/mgar/gar/v2/lib/python/inspective_package.py	2013-05-04 09:55:46 UTC (rev 20979)
+++ csw/mgar/gar/v2/lib/python/inspective_package.py	2013-05-04 09:56:05 UTC (rev 20980)
@@ -422,7 +422,7 @@
        (?P<section>Version\sNeeded|Symbol\sTable  # Section header
                   |Version\sDefinition|Syminfo)
                    \sSection:
-        \s+(?:\.SUNW_version|\.gnu\.version_[rd]
+        \s+(?P<name>\.SUNW_version|\.gnu\.version_[rd]
             |\.(SUNW_l)?dynsym|\.SUNW_syminfo|.symtab)\s*$
 
        |\s*(?:index\s+)?version\s+dependency\s*$  # Version needed header
@@ -476,16 +476,22 @@
                                           #  -  <self> for non external symbols
 
          (?P<symbol>\S+)\s*               # symbol
+                   """),
+      'symtab': (r"""
+         .*                               # We don't care about this section
                    """)}
 
     elfdump_data = None
     m = re.match(headers_re, line, re.VERBOSE)
     if m:
       if m.lastindex:
-        section = m.group('section').lower()
+        if m.group('name') == ".symtab":
+          section = 'symtab'
+        else:
+          section = m.group('section').lower()
     elif section:
       m = re.match(re_by_section[section], line, re.VERBOSE)
-      if m:
+      if m and m.lastindex:
         elfdump_data = m.groupdict()
 
     if not m:

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list