From 2664f68f9553b94a9bb93dc0282de6ffbf8232f9 Mon Sep 17 00:00:00 2001 From: dol-sen Date: Wed, 13 Jul 2011 08:35:44 -0700 Subject: [PATCH] fix the placement of the l.endswith('.a') in the if --- pym/gentoolkit/revdep_rebuild/collect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/gentoolkit/revdep_rebuild/collect.py b/pym/gentoolkit/revdep_rebuild/collect.py index 8d80e21..e8075d8 100644 --- a/pym/gentoolkit/revdep_rebuild/collect.py +++ b/pym/gentoolkit/revdep_rebuild/collect.py @@ -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 -- 2.26.2