[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.3/kdebase/runtime/nepomuk/services/filewatch
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2009-08-20 18:14:38
Message-ID: 1250792078.404508.4342.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1013764 by trueg:

Backport: Fixed moving metadata for moved folders: nie:url is an actual url, not only \
a path

 M  +3 -3      metadatamover.cpp  


--- branches/KDE/4.3/kdebase/runtime/nepomuk/services/filewatch/metadatamover.cpp \
#1013763:1013764 @@ -49,7 +49,7 @@
                                              "{ ?r %1 ?p . } "
                                              "UNION "
                                              "{ ?r %2 ?p . } . "
-                                             "FILTER(REGEX(STR(?p), '^%3')) . "
+                                             "FILTER(REGEX(STR(?p), '^file://%3')) . \
"  "}" )
                                     .arg( Soprano::Node::resourceToN3( \
                Soprano::Vocabulary::Xesam::url() ) )
                                     .arg( Soprano::Node::resourceToN3( \
Nepomuk::Vocabulary::NIE::url() ) ) @@ -153,8 +153,8 @@
                     QString path = to.path();
                     if ( !path.endsWith( '/' ) )
                         path += '/';
-                    path += bs[1].toString().mid( fromPath.endsWith( '/' ) ? \
                fromPath.length() : fromPath.length()+1 );
-                    updateMetadata( bs[1].toString(), path ); // FIXME: reuse the \
URI we already have +                    path += bs[1].uri().path().mid( \
fromPath.endsWith( '/' ) ? fromPath.length() : fromPath.length()+1 ); +               \
updateMetadata( bs[1].uri(), path );  }
 
                 // TODO: optionally create a xesam:url property in case a file was \
moved from a remote URL to a local one


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic