Author: glen Date: Mon Mar 4 20:13:41 2013 New Revision: 12628 Modified: toys/tools/cleanbuild/findbr Log: more patterns to find python modules (python-M2Crypto)
Modified: toys/tools/cleanbuild/findbr ============================================================================== --- toys/tools/cleanbuild/findbr (original) +++ toys/tools/cleanbuild/findbr Mon Mar 4 20:13:41 2013 @@ -244,13 +244,16 @@ 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" ); _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit