Hello community, here is the log from the commit of package soprano checked in at Wed Mar 12 12:05:26 CET 2008. -------- --- soprano/soprano.changes 2008-02-18 17:49:59.000000000 +0100 +++ /mounts/work_src_done/STABLE/soprano/soprano.changes 2008-03-11 21:10:06.000000000 +0100 @@ -1,0 +2,10 @@ +Tue Mar 11 21:09:23 CET 2008 - dmueller@suse.de + +- update to 2.0.3: + * Fixed a string caching bug in LiteralValue which resulted in + invalid string representations when assigning a QDate, QTime, + QDateTime, or QByteArray via operator= + * Use the CLucene StandardAnalyser by default instead of the + SimpleAnalyser. This fixes indexing of numbers. + +------------------------------------------------------------------- Old: ---- soprano-2.0.2.tar.bz2 New: ---- soprano-2.0.3.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ soprano.spec ++++++ --- /var/tmp/diff_new_pack.Bq1176/_old 2008-03-12 12:04:58.000000000 +0100 +++ /var/tmp/diff_new_pack.Bq1176/_new 2008-03-12 12:04:58.000000000 +0100 @@ -1,5 +1,5 @@ # -# spec file for package soprano (Version 2.0.2) +# spec file for package soprano (Version 2.0.3) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine @@ -22,7 +22,7 @@ Group: Development/Libraries/C and C++ Summary: C++/Qt based interface library for RDF BuildRoot: %{_tmppath}/%{name}-%{version}-build -Version: 2.0.2 +Version: 2.0.3 Release: 1 Source: %name-%{version}.tar.bz2 Requires: libsoprano4 >= %{version} @@ -134,6 +134,13 @@ %_libdir/pkgconfig/soprano.pc %changelog +* Tue Mar 11 2008 dmueller@suse.de +- update to 2.0.3: + * Fixed a string caching bug in LiteralValue which resulted in + invalid string representations when assigning a QDate, QTime, + QDateTime, or QByteArray via operator= + * Use the CLucene StandardAnalyser by default instead of the + SimpleAnalyser. This fixes indexing of numbers. * Mon Feb 18 2008 dmueller@suse.de - update to 2.0.2: * MutexModel in ReadWriteMultiThreading mode now allows multiple ++++++ soprano-2.0.2.tar.bz2 -> soprano-2.0.3.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/soprano-2.0.2/ChangeLog new/soprano-2.0.3/ChangeLog --- old/soprano-2.0.2/ChangeLog 2008-02-14 19:25:46.000000000 +0100 +++ new/soprano-2.0.3/ChangeLog 2008-03-03 14:44:16.000000000 +0100 @@ -1,3 +1,9 @@ +2.0.3 + * Fixed a string caching bug in LiteralValue which resulted in invalid string representations when + assigning a QDate, QTime, QDateTime, or QByteArray via operator= + * Use the CLucene StandardAnalyser by default instead of the SimpleAnalyser. This fixes indexing of + numbers. + 2.0.2 * MutexModel in ReadWriteMultiThreading mode now allows multiple read operations from the same thread at the same time even if a write operation is waiting. This fixes a deadlock in the Nepomuk Strigi diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/soprano-2.0.2/CMakeLists.txt new/soprano-2.0.3/CMakeLists.txt --- old/soprano-2.0.2/CMakeLists.txt 2008-02-14 20:45:47.000000000 +0100 +++ new/soprano-2.0.3/CMakeLists.txt 2008-02-28 18:50:27.000000000 +0100 @@ -2,7 +2,7 @@ set(CMAKE_SOPRANO_VERSION_MAJOR 2 CACHE INT "Major Soprano version number" FORCE) set(CMAKE_SOPRANO_VERSION_MINOR 0 CACHE INT "Minor Soprano version number" FORCE) -set(CMAKE_SOPRANO_VERSION_RELEASE 2 CACHE INT "Release Soprano version number" FORCE) +set(CMAKE_SOPRANO_VERSION_RELEASE 3 CACHE INT "Release Soprano version number" FORCE) set(CMAKE_SOPRANO_VERSION_STRING "${CMAKE_SOPRANO_VERSION_MAJOR}.${CMAKE_SOPRANO_VERSION_MINOR}.${CMAKE_SOPRANO_VERSION_RELEASE}" CACHE STRING "Soprano version string" FORCE) enable_testing() diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/soprano-2.0.2/index/cluceneindex.cpp new/soprano-2.0.3/index/cluceneindex.cpp --- old/soprano-2.0.2/index/cluceneindex.cpp 2008-01-07 10:29:32.000000000 +0100 +++ new/soprano-2.0.3/index/cluceneindex.cpp 2008-03-03 14:44:16.000000000 +0100 @@ -249,11 +249,11 @@ delete( doc ); } - documentCache.clear(); - // write all changes back to disk getIndexWriter()->optimize(); closeWriter(); + + documentCache.clear(); } }; @@ -263,7 +263,7 @@ { d->analyzer = analyzer; if ( !d->analyzer ) { - d->analyzer = _CLNEW lucene::analysis::SimpleAnalyzer(); + d->analyzer = _CLNEW lucene::analysis::standard::StandardAnalyzer(); d->deleteAnalyzer = true; } } @@ -533,7 +533,7 @@ return hits; } catch( CLuceneError& err ) { - qDebug() << "search failed: " << err.what(); + qDebug() << "search" << query << "failed: " << err.what(); setError( exceptionToError( err ) ); return Iterator<QueryHit>(); } @@ -653,7 +653,9 @@ while ( e->hasMoreElements() ) { lucene::document::Field* field = e->nextElement(); - s << TString( field->name(), true ).toQString() << ": " << TString( field->stringValue(), true ).toQString() << endl; + s << TString( field->name(), true ).toQString() << ": " + << TString( field->stringValue(), true ).toQString() + << endl; } s << endl; _CLDELETE( e ); diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/soprano-2.0.2/soprano/datetime.cpp new/soprano-2.0.3/soprano/datetime.cpp --- old/soprano-2.0.2/soprano/datetime.cpp 2008-02-12 12:52:17.000000000 +0100 +++ new/soprano-2.0.3/soprano/datetime.cpp 2008-02-28 19:05:30.000000000 +0100 @@ -204,13 +204,13 @@ { QString frac; if( t.msec() > 0 ) { - frac.sprintf( "%03d", t.msec() ); + frac.sprintf( ".%03d", t.msec() ); // remove trailing zeros while( frac.endsWith( "0" ) ) frac.truncate( frac.length() -1 ); } - return t.toString( "HH:mm:ss" ) + '.' + frac + 'Z'; + return t.toString( "HH:mm:ss" ) + frac + 'Z'; } diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/soprano-2.0.2/soprano/literalvalue.cpp new/soprano-2.0.3/soprano/literalvalue.cpp --- old/soprano-2.0.2/soprano/literalvalue.cpp 2007-12-24 13:49:13.000000000 +0100 +++ new/soprano-2.0.3/soprano/literalvalue.cpp 2008-02-28 18:50:27.000000000 +0100 @@ -250,7 +250,7 @@ Soprano::LiteralValue& Soprano::LiteralValue::operator=( const QDate& date ) { - d->stringCacheValid = true; + d->stringCacheValid = false; d->value.setValue( date ); d->dataTypeUri = QUrl(); return *this; @@ -259,7 +259,7 @@ Soprano::LiteralValue& Soprano::LiteralValue::operator=( const QTime& time ) { - d->stringCacheValid = true; + d->stringCacheValid = false; d->value.setValue( time ); d->dataTypeUri = QUrl(); return *this; @@ -268,7 +268,7 @@ Soprano::LiteralValue& Soprano::LiteralValue::operator=( const QDateTime& datetime ) { - d->stringCacheValid = true; + d->stringCacheValid = false; d->value.setValue( datetime.toUTC() ); d->dataTypeUri = QUrl(); return *this; @@ -277,7 +277,7 @@ Soprano::LiteralValue& Soprano::LiteralValue::operator=( const QByteArray& data ) { - d->stringCacheValid = true; + d->stringCacheValid = false; d->value.setValue( data ); d->dataTypeUri = QUrl(); return *this; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org