Hello community,

here is the log from the commit of package kpeople5 for openSUSE:Factory 
checked in at 2016-05-19 12:09:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kpeople5 (Old)
 and      /work/SRC/openSUSE:Factory/.kpeople5.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kpeople5"

Changes:
--------
--- /work/SRC/openSUSE:Factory/kpeople5/kpeople5.changes        2016-04-12 
19:24:08.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.kpeople5.new/kpeople5.changes   2016-05-19 
12:09:12.000000000 +0200
@@ -1,0 +2,8 @@
+Sat May  7 18:33:23 UTC 2016 - [email protected]
+
+- Update to 5.22.0 (boo#980066)
+  * Add a check for PersonData being valid
+  * For more details please see:
+    https://www.kde.org/announcements/kde-frameworks-5.22.0.php
+
+-------------------------------------------------------------------

Old:
----
  kpeople-5.21.0.tar.xz

New:
----
  kpeople-5.22.0.tar.xz

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

Other differences:
------------------
++++++ kpeople5.spec ++++++
--- /var/tmp/diff_new_pack.A4j8RU/_old  2016-05-19 12:09:13.000000000 +0200
+++ /var/tmp/diff_new_pack.A4j8RU/_new  2016-05-19 12:09:13.000000000 +0200
@@ -18,9 +18,9 @@
 
 %bcond_without lang
 %define rname kpeople
-%define _tar_path 5.21
+%define _tar_path 5.22
 Name:           kpeople5
-Version:        5.21.0
+Version:        5.22.0
 Release:        0
 %define kf5_version %{version}
 BuildRequires:  extra-cmake-modules >= %{_tar_path}

++++++ kpeople-5.21.0.tar.xz -> kpeople-5.22.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kpeople-5.21.0/CMakeLists.txt 
new/kpeople-5.22.0/CMakeLists.txt
--- old/kpeople-5.21.0/CMakeLists.txt   2016-04-03 23:00:35.000000000 +0200
+++ new/kpeople-5.22.0/CMakeLists.txt   2016-05-07 17:21:21.000000000 +0200
@@ -3,14 +3,14 @@
 project (KPeople)
 
 include(FeatureSummary)
-find_package(ECM 5.21.0  NO_MODULE)
+find_package(ECM 5.22.0  NO_MODULE)
 set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake 
Modules." URL 
"https://projects.kde.org/projects/kdesupport/extra-cmake-modules";)
 feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND 
FATAL_ON_MISSING_REQUIRED_PACKAGES)
 
 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
 
-set(KF5_VERSION "5.21.0") # handled by release scripts
-set(KF5_DEP_VERSION "5.21.0") # handled by release scripts
+set(KF5_VERSION "5.22.0") # handled by release scripts
+set(KF5_DEP_VERSION "5.22.0") # handled by release scripts
 
 set(REQUIRED_QT_VERSION 5.4.0)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kpeople-5.21.0/autotests/persondatatests.cpp 
new/kpeople-5.22.0/autotests/persondatatests.cpp
--- old/kpeople-5.21.0/autotests/persondatatests.cpp    2016-04-03 
23:00:35.000000000 +0200
+++ new/kpeople-5.22.0/autotests/persondatatests.cpp    2016-05-07 
17:21:21.000000000 +0200
@@ -115,4 +115,8 @@
 {
     PersonData person(QStringLiteral("fakesource://unexisting"));
     QCOMPARE(QString(), person.name());
+    QVERIFY(!person.isValid());
+
+    PersonData invalidPerson(QStringLiteral());
+    QVERIFY(!invalidPerson.isValid());
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kpeople-5.21.0/src/persondata.cpp 
new/kpeople-5.22.0/src/persondata.cpp
--- old/kpeople-5.21.0/src/persondata.cpp       2016-04-03 23:00:35.000000000 
+0200
+++ new/kpeople-5.22.0/src/persondata.cpp       2016-05-07 17:21:21.000000000 
+0200
@@ -97,6 +97,12 @@
     delete d_ptr;
 }
 
+bool PersonData::isValid() const
+{
+    Q_D(const PersonData);
+    return !d->metaContact.id().isEmpty();
+}
+
 QString PersonData::personUri() const
 {
     Q_D(const PersonData);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kpeople-5.21.0/src/persondata.h 
new/kpeople-5.22.0/src/persondata.h
--- old/kpeople-5.21.0/src/persondata.h 2016-04-03 23:00:35.000000000 +0200
+++ new/kpeople-5.22.0/src/persondata.h 2016-05-07 17:21:21.000000000 +0200
@@ -57,6 +57,12 @@
 
     virtual ~PersonData();
 
+    /**
+     * Returns true if this PersonData is mapped to some existing contact
+     * @since 5.22
+     */
+    bool isValid() const;
+
     /** Returns the person's id */
     QString personUri() const;
 


Reply via email to