Updated update-mime-database

Ralf Habacker ralf.habacker at freenet.de
Mon Apr 23 20:01:58 CEST 2007


Ralf Habacker schrieb:
> Christian Ehrlicher schrieb:
>   
>> Hi,
>>
>> I've updated update-mime-database to fix mimetype creation. There is 
>> still an open issue - the current fix is to copy freedesktop.org.xml 
>> from update-mime-database sources to 
>> kde-install-dir/share/mime/packages and rerun "make install" in 
>> kdelibs-build dir.
>>     
> Another - may be easier way - is to add freedesktop.org.xml to the bin 
> package into the zip path share/mime/packages, install it by hand or 
> with the installer and add  <installer-root-dir> to KDEDIRS.
>   
With the help of Christian I've updated a new updated-mime-database 
binary package 0.21-4, which has all basic mimetypes included.

Simple install the updated package and add the install root to KDEDIRS 
before running kbuildsycoca4

BTW: kmimetest has still errors

[3536] kdecore (KUrl): KUrl::setPath  textfile
[3536] kdecore (KUrl): KUrl::setPath  textfile.foo
[3536] kdecore (KUrl): KUrl::setPath  textfile.doc
FAIL!  : KMimeTypeTest::testFindByNameAndContent() Compared values are 
not the same
   Actual (mime->name()): text/plain
   Expected (QString::fromLatin1("application/msword")): application/msword
F:\daten\kdelibs\kdecore\tests\kmimetypetest.cpp(213) : failure location
FAIL!  : KMimeTypeTest::testFindByContent() Compared values are not the same
   Actual (mime->name()): text/plain
   Expected (QString::fromLatin1("application/pdf")): application/pdf
F:\daten\kdelibs\kdecore\tests\kmimetypetest.cpp(263) : failure location
PASS   : KMimeTypeTest::testAllMimeTypes()
FAIL!  : KMimeTypeTest::testAlias() 'alias' returned FALSE. ()
F:\daten\kdelibs\kdecore\tests\kmimetypetest.cpp(304) : failure location
<snip>
[3536] kio (KTrader): KMimeTypeTrader::weightedOffers( application/xml, 
KParts/ReadOnlyPart )
[3536] kio (KTrader): query for mimeType application/xml, 
KParts/ReadOnlyPart : returning 2 offers
[3536] kio (KTrader): KMimeTypeTrader::weightedOffers( text/xml, 
KParts/ReadOnlyPart )
[3536] kio (KTrader): WARNING: KMimeTypeTrader: mimeType text/xml not found
[3536] kio (KTrader): query for mimeType text/xml, KParts/ReadOnlyPart : 
returning 0 offers
FAIL!  : KMimeTypeTest::testMimeTypeTraderForAlias() 
'offerListHasService( offers, "katepart.desktop" )' returned FALSE.
F:\daten\kdelibs\kdecore\tests\kmimetypetest.cpp(416) : failure location
PASS   : KMimeTypeTest::testHasServiceType1()
PASS   : KMimeTypeTest::testHasServiceType2()
FAIL!  : KMimeTypeTest::testPatterns() Compared values are not the same
   Actual (mime_pdf->patterns().join(",")):
   Expected (QString("*.pdf")): *.pdf
F:\daten\kdelibs\kdecore\tests\kmimetypetest.cpp(464) : failure location


Ralf




More information about the Kde-windows mailing list