Give it a slightly bigger chance to work for non-MUON libs as well
authorlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Apr 2008 10:58:17 +0000 (10:58 +0000)
committerlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Apr 2008 10:58:17 +0000 (10:58 +0000)
MUON/checkDeps.py

index d657542..205529c 100755 (executable)
@@ -12,7 +12,6 @@ Given a directory, will look into lib*.pkg files to produce a dependency graph
 """
 
 __author__ = "L. Aphecetche aphecetc_at_in2p3_dot_fr"
-__date__ = "April 2008"
 __version__ = "$Id$"
 
 #_______________________________________________________________________________
@@ -89,11 +88,11 @@ def findLibrary(file,allfiles):
   
 #_______________________________________________________________________________
 def shorten(libname):
-  """From libMUONxxx.pkg to xxx
+  """From libYYYxxx.pkg to YYYxxx
   """
   s = libname
-  if re.search("libMUON",libname):
-    s = re.sub("libMUON","",s)
+  if re.search("lib",libname):
+    s = re.sub("lib","",s)
     s = re.sub("\.pkg","",s)
   return s