summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe2013-03-04 19:13:41 (GMT)
committerElan Ruusamäe2013-03-04 19:13:41 (GMT)
commit3a07fe6f6fd221afa80c056870cd7fe0597fff53 (patch)
treef1cb5b7b8849b18085008c17283f00b118e13a1b
parenta7c421e28b6d362dd506454b3e2bb6e203008b35 (diff)
downloadcleanbuild-3a07fe6f6fd221afa80c056870cd7fe0597fff53.zip
cleanbuild-3a07fe6f6fd221afa80c056870cd7fe0597fff53.tar.gz
more patterns to find python modules (python-M2Crypto)
svn-id: @12628
-rwxr-xr-xfindbr7
1 files changed, 5 insertions, 2 deletions
diff --git a/findbr b/findbr
index 006f6ca..6bff9f0 100755
--- a/findbr
+++ b/findbr
@@ -244,13 +244,16 @@ while ( $_ = shift @lines ) {
poldek_file( "/usr/include*/$h" );
}
if ( m{^ImportError: No module named (\S+)$} or
- m{^ERROR: Cannot find .+: No module named (\S+)$}
+ m{^ERROR: Cannot find .+: No module named (\S+)$} or
+ m{^ERROR: Failed to import the ".+" module: No module named (\S+)$}
) {
my $mod = $1;
$mod =~ s#\.#/#g;
warn "Looking for python module $mod\n";
- poldek_file( "/usr/share/python2*/$mod/__init__.py*",
+ poldek_file(
+ "/usr/share/python2*/$mod/__init__.py*",
"/usr/share/python2*/$mod.py*",
+ "/usr/lib*/python2*/$mod/__init__.py*",
"/usr/lib*/python2*/$mod.py*",
"/usr/lib*/python2*/_$mod.so",
"/usr/lib*/python2*/$mod.so" );