Index: pkgchk_packages.cxx =================================================================== RCS file: /cvs/framework/desktop/source/pkgchk/pkgchk_packages.cxx,v retrieving revision 1.5.6.3 diff -c -r1.5.6.3 pkgchk_packages.cxx *** pkgchk_packages.cxx 21 Feb 2003 00:06:59 -0000 1.5.6.3 --- pkgchk_packages.cxx 6 Apr 2003 19:52:41 -0000 *************** *** 72,78 **** namespace pkgchk { ! enum ctype { ZIP, SO, JAR, XLB, RDB, XCU, OTHER }; //================================================================================================== static inline ctype path_get_ctype( OUString const & path ) --- 72,78 ---- namespace pkgchk { ! enum ctype { ZIP, SO, JAR, XLB, RDB, XCU, PY, OTHER }; //================================================================================================== static inline ctype path_get_ctype( OUString const & path ) *************** *** 110,119 **** --- 110,144 ---- { return XCU; } + if( 0 == rtl_ustr_ascii_compareIgnoreAsciiCase( + path.pData->buffer + dot, ".py" )) + { + return PY; + } } return OTHER; } + static inline OUString ctype_to_loadername( enum ctype ct ) + { + OUString ret; + switch( ct ) + { + case SO: + ret = OUSTR("com.sun.star.loader.SharedLibrary"); + break; + case JAR: + ret = OUSTR("com.sun.star.loader.Java2"); + break; + case PY: + ret = OUSTR("com.sun.star.loader.Python" ); + break; + default: + ret = OUSTR("unkown-loader-type in pkgchk" ); + } + return ret; + } + //================================================================================================== static OUString make_reg_url( OUString const & reg_base_path, OUString const & package ) { *************** *** 356,361 **** --- 381,387 ---- ctype ct = path_get_ctype( path ); switch (ct) { + case PY: case SO: case JAR: { *************** *** 384,393 **** try { env.get_impreg()->registerImplementation( ! SO == ct ! ? OUSTR("com.sun.star.loader.SharedLibrary") ! : OUSTR("com.sun.star.loader.Java2"), ! url, xServices_rdb ); buf.appendAscii( RTL_CONSTASCII_STRINGPARAM(": ok.") ); env.log( buf.makeStringAndClear() ); --- 410,416 ---- try { env.get_impreg()->registerImplementation( ! ctype_to_loadername( ct ), url, xServices_rdb ); buf.appendAscii( RTL_CONSTASCII_STRINGPARAM(": ok.") ); env.log( buf.makeStringAndClear() );