Hello community,

here is the log from the commit of package libkcddb4 for openSUSE:Factory 
checked in at 2014-10-16 18:12:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libkcddb4 (Old)
 and      /work/SRC/openSUSE:Factory/.libkcddb4.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libkcddb4"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libkcddb4/libkcddb4.changes      2014-09-18 
07:59:25.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libkcddb4.new/libkcddb4.changes 2014-10-16 
18:13:23.000000000 +0200
@@ -1,0 +2,7 @@
+Sun Oct 12 12:08:17 UTC 2014 - [email protected]
+
+- Update to 4.14.2
+   * KDE 4.14.2 SC Bugfix Release
+   * See http://www.kde.org/announcements/announce-4.14.2.php
+
+-------------------------------------------------------------------

Old:
----
  libkcddb-4.14.1.tar.xz

New:
----
  libkcddb-4.14.2.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libkcddb4.spec ++++++
--- /var/tmp/diff_new_pack.3Wg35p/_old  2014-10-16 18:13:25.000000000 +0200
+++ /var/tmp/diff_new_pack.3Wg35p/_new  2014-10-16 18:13:25.000000000 +0200
@@ -26,7 +26,7 @@
 License:        GPL-2.0+
 Group:          System/GUI/KDE
 Url:            http://www.kde.org
-Version:        4.14.1
+Version:        4.14.2
 Release:        0
 Source0:        libkcddb-%{version}.tar.xz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ libkcddb-4.14.1.tar.xz -> libkcddb-4.14.2.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libkcddb-4.14.1/libkcddb/cache.cpp 
new/libkcddb-4.14.2/libkcddb/cache.cpp
--- old/libkcddb-4.14.1/libkcddb/cache.cpp      2014-08-10 09:34:59.000000000 
+0200
+++ new/libkcddb-4.14.2/libkcddb/cache.cpp      2014-09-28 00:45:59.000000000 
+0200
@@ -112,28 +112,34 @@
       newInfo.set(QLatin1String( "discid" ), id);
     }
 
-    cacheDir = c.cacheLocations().first() + cacheDir;
+    const QStringList cacheLocations = c.cacheLocations();
 
-    QDir dir;
+    if (!cacheLocations.isEmpty()) {
+      cacheDir = cacheLocations.first() + cacheDir;
 
-    if (!dir.exists(cacheDir))
-    {
-      if (!dir.mkpath(cacheDir))
+      QDir dir;
+
+      if (!dir.exists(cacheDir))
       {
-        kWarning(60010) << "Couldn't create cache directory " << cacheDir;
-        return;
+        if (!dir.mkpath(cacheDir))
+        {
+          kWarning(60010) << "Couldn't create cache directory " << cacheDir;
+          return;
+        }
       }
-    }
 
-    kDebug(60010) << "Storing " << cacheFile << " in CDDB cache";
+      kDebug(60010) << "Storing " << cacheFile << " in CDDB cache";
 
-    QFile f(cacheDir + QLatin1Char( '/' ) + cacheFile);
-    if ( f.open(QIODevice::WriteOnly) )
-    {
-      QTextStream ts(&f);
-      ts.setCodec("UTF-8");
-      ts << newInfo.toString();
-      f.close();
+      QFile f(cacheDir + QLatin1Char( '/' ) + cacheFile);
+      if ( f.open(QIODevice::WriteOnly) )
+      {
+        QTextStream ts(&f);
+        ts.setCodec("UTF-8");
+        ts << newInfo.toString();
+        f.close();
+      }
+    } else {
+      kDebug(60010) << "There's no cache dir defined, not storing it";
     }
   }
 }

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to