Fixed checks for --library option
authorlis.slawek <lis.slawek@5234894e-44cd-11de-9a4c-a76526a193c6>
Tue, 23 Nov 2010 09:13:43 +0000 (09:13 +0000)
committerPaul Varner <fuzzyray@gentoo.org>
Tue, 12 Jul 2011 21:29:00 +0000 (16:29 -0500)
git-svn-id: http://genscripts.googlecode.com/svn/trunk/gentoolkit@489 5234894e-44cd-11de-9a4c-a76526a193c6

pym/gentoolkit/revdep_rebuild/revdep-rebuild.py

index f8f67d65dad72b00777b4edd7acf48680e61dbc4..ebc0c3bff6973500a4910d5143300b993528d3de 100755 (executable)
@@ -99,8 +99,7 @@ def print_usage():
   -h, --help           Print this usage
   -i, --ignore         Ignore temporary files from previous runs (also won't create any)
   -L, --library NAME   Emerge existing packages that use the library with NAME
-      --library=NAME   NAME can be a full path to the library or a basic
-                       regular expression (man grep)
+      --library=NAME   NAME can be a full or partial library name
   -l, --no-ld-path     Do not set LD_LIBRARY_PATH
   -o, --no-order       Do not check the build order
                        (Saves time, but may cause breakage.)
@@ -420,7 +419,7 @@ def find_broken(found_libs, system_libraries, to_check):
     else:
         for tc in to_check:
             for f in found_libs:
-                if tc in f and f+'|' not in sl:
+                if tc in f:# and f+'|' not in sl:
                     broken.append(found_libs.index(f))
 
     return broken