Hello community,

here is the log from the commit of package gwenview5 for openSUSE:Factory 
checked in at 2016-10-10 17:30:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gwenview5 (Old)
 and      /work/SRC/openSUSE:Factory/.gwenview5.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gwenview5"

Changes:
--------
--- /work/SRC/openSUSE:Factory/gwenview5/gwenview5.changes      2016-09-14 
23:02:02.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.gwenview5.new/gwenview5.changes 2016-10-10 
17:30:27.000000000 +0200
@@ -1,0 +2,19 @@
+Thu Sep 29 07:31:32 UTC 2016 - [email protected]
+
+- Added a require for kdelibs4support since that package provides
+  qimageioplugins services for jpeg, png, gif and other image formats
+  and gwenview5 can't be used without it (boo#1001276).
+
+-------------------------------------------------------------------
+Wed Sep 28 15:17:34 UTC 2016 - [email protected]
+
+- Added QUrl::AssumeLocalFile to fix-multiple-arguments.diff to
+  mimic the patch accepted upstream 
+
+-------------------------------------------------------------------
+Wed Sep 28 10:36:41 UTC 2016 - [email protected]
+
+- Add fix-multiple-arguments.diff to fix handling of multiple local
+  file arguments in the command line (boo#1001276)
+
+-------------------------------------------------------------------

New:
----
  fix-multiple-arguments.diff

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

Other differences:
------------------
++++++ gwenview5.spec ++++++
--- /var/tmp/diff_new_pack.MBx4vW/_old  2016-10-10 17:30:29.000000000 +0200
+++ /var/tmp/diff_new_pack.MBx4vW/_new  2016-10-10 17:30:29.000000000 +0200
@@ -25,6 +25,8 @@
 Group:          Productivity/Graphics/Viewers
 Url:            http://www.kde.org
 Source0:        %{rname}-%{version}.tar.xz
+# PATCH-FIX-UPSTREAM fix-multiple-arguments.diff boo#1001276 [email protected] 
- Fix handling of multiple local file arguments in command line
+Patch0:         fix-multiple-arguments.diff
 BuildRequires:  baloo5-devel
 BuildRequires:  extra-cmake-modules >= 1.7.0
 BuildRequires:  kactivities5-devel
@@ -46,6 +48,7 @@
 BuildRequires:  pkgconfig(Qt5Test) >= 5.2.0
 BuildRequires:  pkgconfig(Qt5Widgets) >= 5.2.0
 BuildRequires:  pkgconfig(Qt5X11Extras) >= 5.2.0
+Requires:       kdelibs4support
 %if 0%{?suse_version} > 1320
 Obsoletes:      gwenview < %{version}
 %else
@@ -60,6 +63,7 @@
 
 %prep
 %setup -q -n %{rname}-%{version}
+%patch0 -p1
 
 %build
   %cmake_kf5 -d build -- -DGWENVIEW_SEMANTICINFO_BACKEND="Baloo"

++++++ fix-multiple-arguments.diff ++++++
Index: gwenview-16.08.1/app/main.cpp
===================================================================
--- gwenview-16.08.1.orig/app/main.cpp
+++ gwenview-16.08.1/app/main.cpp
@@ -59,8 +59,19 @@ public:
             mMultipleUrlsDir.reset(new QTemporaryDir);
             mUrl = QUrl::fromLocalFile(mMultipleUrlsDir->path());
             QList<QUrl> list;
-            foreach(const QString & url, args) {
-                list << QUrl::fromUserInput(url);
+            QStringList tmpArgs = args;
+            tmpArgs.removeDuplicates();
+            foreach(const QString & url, tmpArgs) {
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 4, 0))
+                list << QUrl::fromUserInput(url, QDir::currentPath(), 
QUrl::AssumeLocalFile);
+#else
+                QUrl tmpUrl = QUrl(url);
+                if (tmpUrl.scheme().isEmpty() && 
!url.startsWith(QLatin1Char('/'))) {
+                   list << QUrl::fromLocalFile(url);
+                } else {
+                   list << QUrl::fromUserInput(url);
+                }
+#endif
             }
 
             KIO::CopyJob* job = KIO::link(list, mUrl);
@@ -68,7 +79,7 @@ public:
         } else {
             QString tmpArg = args.first();
 #if (QT_VERSION >= QT_VERSION_CHECK(5, 4, 0))
-            mUrl = QUrl::fromUserInput(tmpArg, QDir::currentPath());
+            mUrl = QUrl::fromUserInput(tmpArg, QDir::currentPath(), 
QUrl::AssumeLocalFile);
 #else
             QUrl tmpUrl = QUrl(tmpArg);
             if (tmpUrl.scheme().isEmpty() && 
!tmpArg.startsWith(QLatin1Char('/'))) {

Reply via email to