Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package attica-qt5 for openSUSE:Factory checked in at 2021-10-18 21:58:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/attica-qt5 (Old) and /work/SRC/openSUSE:Factory/.attica-qt5.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "attica-qt5" Mon Oct 18 21:58:19 2021 rev:96 rq:924403 version:5.87.0 Changes: -------- --- /work/SRC/openSUSE:Factory/attica-qt5/attica-qt5.changes 2021-09-16 23:15:22.459841964 +0200 +++ /work/SRC/openSUSE:Factory/.attica-qt5.new.1890/attica-qt5.changes 2021-10-18 21:58:21.593927234 +0200 @@ -1,0 +2,23 @@ +Sun Oct 3 20:33:29 UTC 2021 - Christophe Giboudeaux <[email protected]> + +- Update to 5.87.0 + * New feature release + * For more details please see: + * https://kde.org/announcements/frameworks/5/5.87.0 +- Changes since 5.86.0: + * Do not mark jobs that have been aborted as errored + * Add Gitlab CI configuration + * Ensure categories.xml is only fetched once in parallel + * Do not start basejobs twice + * Add CI configuration file +- Drop upstream patch: + * 0001-Ensure-categories.xml-is-only-fetched-once-in-parall.patch + +------------------------------------------------------------------- +Fri Oct 1 18:30:35 UTC 2021 - Christophe Giboudeaux <[email protected]> + +- Add upstream patch to avoid unnecessary network traffic: + * 0001-Ensure-categories.xml-is-only-fetched-once-in-parall.patch + + +------------------------------------------------------------------- Old: ---- attica-5.86.0.tar.xz attica-5.86.0.tar.xz.sig New: ---- attica-5.87.0.tar.xz attica-5.87.0.tar.xz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ attica-qt5.spec ++++++ --- /var/tmp/diff_new_pack.vL5LwH/_old 2021-10-18 21:58:22.421927833 +0200 +++ /var/tmp/diff_new_pack.vL5LwH/_new 2021-10-18 21:58:22.425927836 +0200 @@ -19,7 +19,7 @@ %define sonum 5 %define rname attica %define _libname KF5Attica -%define _tar_path 5.86 +%define _tar_path 5.87 # Full KF5 version (e.g. 5.33.0) %{!?_kf5_version: %global _kf5_version %{version}} # Last major and minor KF5 version (e.g. 5.33) @@ -27,7 +27,7 @@ # Only needed for the package signature condition %bcond_without lang Name: attica-qt5 -Version: 5.86.0 +Version: 5.87.0 Release: 0 Summary: Open Collaboration Service client library License: LGPL-2.1-or-later ++++++ attica-5.86.0.tar.xz -> attica-5.87.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/attica-5.86.0/.gitlab-ci.yml new/attica-5.87.0/.gitlab-ci.yml --- old/attica-5.86.0/.gitlab-ci.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/attica-5.87.0/.gitlab-ci.yml 2021-10-02 14:13:28.000000000 +0200 @@ -0,0 +1,5 @@ +# SPDX-FileCopyrightText: 2020 Volker Krause <[email protected]> +# SPDX-License-Identifier: CC0-1.0 + +include: + - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/linux.yml diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/attica-5.86.0/.kde-ci.yml new/attica-5.87.0/.kde-ci.yml --- old/attica-5.86.0/.kde-ci.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/attica-5.87.0/.kde-ci.yml 2021-10-02 14:13:28.000000000 +0200 @@ -0,0 +1,7 @@ +Dependencies: +- 'on': ['@all'] + 'require': + 'frameworks/extra-cmake-modules': '@same' + +Options: + test-before-installing: True diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/attica-5.86.0/CMakeLists.txt new/attica-5.87.0/CMakeLists.txt --- old/attica-5.86.0/CMakeLists.txt 2021-09-04 17:39:58.000000000 +0200 +++ new/attica-5.87.0/CMakeLists.txt 2021-10-02 14:13:28.000000000 +0200 @@ -1,11 +1,11 @@ cmake_minimum_required(VERSION 3.16) -set(KF_VERSION "5.86.0") # handled by release scripts +set(KF_VERSION "5.87.0") # handled by release scripts project(Attica VERSION ${KF_VERSION}) # ECM setup include(FeatureSummary) -find_package(ECM 5.86.0 NO_MODULE) +find_package(ECM 5.87.0 NO_MODULE) set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://commits.kde.org/extra-cmake-modules") feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/attica-5.86.0/src/atticabasejob.cpp new/attica-5.87.0/src/atticabasejob.cpp --- old/attica-5.86.0/src/atticabasejob.cpp 2021-09-04 17:39:58.000000000 +0200 +++ new/attica-5.87.0/src/atticabasejob.cpp 2021-10-02 14:13:28.000000000 +0200 @@ -26,6 +26,7 @@ PlatformDependent *m_internals; QNetworkReply *m_reply; bool aborted{false}; + bool started = false; Private(PlatformDependent *internals) : m_internals(internals) @@ -77,7 +78,7 @@ return; } - bool error = (d->m_reply->error() != QNetworkReply::NoError); + bool error = d->m_reply->error() != QNetworkReply::NoError && d->m_reply->error() == QNetworkReply::OperationCanceledError; // handle redirections automatically QUrl newUrl; @@ -120,7 +121,10 @@ void BaseJob::start() { - QTimer::singleShot(0, this, &BaseJob::doWork); + if (!d->started) { + d->started = true; + QTimer::singleShot(0, this, &BaseJob::doWork); + } } void BaseJob::doWork() @@ -153,6 +157,11 @@ deleteLater(); } +bool BaseJob::isAborted() const +{ + return d->aborted; +} + PlatformDependent *BaseJob::internals() { return d->m_internals; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/attica-5.86.0/src/atticabasejob.h new/attica-5.87.0/src/atticabasejob.h --- old/attica-5.86.0/src/atticabasejob.h 2021-09-04 17:39:58.000000000 +0200 +++ new/attica-5.87.0/src/atticabasejob.h 2021-10-02 14:13:28.000000000 +0200 @@ -37,6 +37,13 @@ PasswordAttribute, }; + /** + * @returns whether abort() has been called on the job + * + * @since 5.87 + */ + bool isAborted() const; + public Q_SLOTS: void start(); void abort(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/attica-5.86.0/src/provider.cpp new/attica-5.87.0/src/provider.cpp --- old/attica-5.86.0/src/provider.cpp 2021-09-04 17:39:58.000000000 +0200 +++ new/attica-5.87.0/src/provider.cpp 2021-10-02 14:13:28.000000000 +0200 @@ -64,6 +64,7 @@ #include <QFile> #include <QNetworkAccessManager> #include <QNetworkReply> +#include <QThreadStorage> #include <QUrlQuery> using namespace Attica; @@ -1134,8 +1135,18 @@ return nullptr; } - QUrl url = createUrl(QLatin1String("content/categories")); - ListJob<Category> *job = new ListJob<Category>(d->m_internals, createRequest(url)); + const QUrl url = createUrl(QLatin1String("content/categories")); + + // Thread-local cache of categories requests. They are fairly slow and block startup + static QThreadStorage<QHash<QUrl, ListJob<Category> *>> reqs; + ListJob<Category> *job = reqs.localData().value(url); + if (!job) { + job = new ListJob<Category>(d->m_internals, createRequest(url)); + QObject::connect(job, &BaseJob::finished, [url] { + reqs.localData().remove(url); + }); + reqs.localData().insert(url, job); + } return job; }
