fix the placement of the l.endswith('.a') in the if
authordol-sen <brian.dolbec@gmail.com>
Wed, 13 Jul 2011 15:35:44 +0000 (08:35 -0700)
committerdol-sen <brian.dolbec@gmail.com>
Wed, 13 Jul 2011 15:35:44 +0000 (08:35 -0700)
pym/gentoolkit/revdep_rebuild/collect.py

index 8d80e21d46c3414c8e7e2dfde34cedad870b84c0..e8075d8071877cd86f9d86502b8863ed3bad6b44 100644 (file)
@@ -140,7 +140,7 @@ def collect_libraries_from_dir(dirs, mask, logger):
                                        else:
                                                found_directories.append(l)
                                elif os.path.isfile(l):
-                                       if l.endswith('.so') or '.so.' or l.endswith('.a') in l:
+                                       if l.endswith('.so') or l.endswith('.a') or '.so.' in l:
                                                if l in found_files or l in found_symlinks:
                                                        continue