diff --git a/apper-0.9.1-pk_cache_age.patch b/apper-0.9.1-pk_cache_age.patch new file mode 100644 index 0000000..7d4344e --- /dev/null +++ b/apper-0.9.1-pk_cache_age.patch @@ -0,0 +1,62 @@ +diff -up apper-0.9.1/apperd/RefreshCacheTask.cpp.pk_cache_age apper-0.9.1/apperd/RefreshCacheTask.cpp +--- apper-0.9.1/apperd/RefreshCacheTask.cpp.pk_cache_age 2014-08-25 13:51:50.000000000 -0500 ++++ apper-0.9.1/apperd/RefreshCacheTask.cpp 2015-04-27 14:25:21.663347177 -0500 +@@ -33,7 +33,8 @@ RefreshCacheTask::RefreshCacheTask(QObje + QObject(parent), + m_transaction(0), + m_notification(0), +- m_lastError(Transaction::ErrorUnknown) ++ m_lastError(Transaction::ErrorUnknown), ++ m_cacheAge (3600); + { + } + +@@ -43,6 +44,7 @@ void RefreshCacheTask::refreshCache() + if (!m_transaction) { + // Refresh Cache is false otherwise it will rebuild + // the whole cache on Fedora ++ Daemon::setHints (QLatin1String("cache-age=")+QString::number(m_cacheAge)); + m_transaction = Daemon::refreshCache(false); + connect(m_transaction, SIGNAL(finished(PackageKit::Transaction::Exit,uint)), + this, SLOT(refreshCacheFinished(PackageKit::Transaction::Exit,uint))); +diff -up apper-0.9.1/apperd/RefreshCacheTask.h.pk_cache_age apper-0.9.1/apperd/RefreshCacheTask.h +--- apper-0.9.1/apperd/RefreshCacheTask.h.pk_cache_age 2014-08-25 13:51:50.000000000 -0500 ++++ apper-0.9.1/apperd/RefreshCacheTask.h 2015-04-27 14:24:13.004451853 -0500 +@@ -44,6 +44,7 @@ private: + Transaction *m_transaction; + KNotification *m_notification; + Transaction::Error m_lastError; ++ uint m_cacheAge; + QString m_lastErrorString; + }; + +diff -up apper-0.9.1/ApperKCM/ApperKCM.cpp.pk_cache_age apper-0.9.1/ApperKCM/ApperKCM.cpp +--- apper-0.9.1/ApperKCM/ApperKCM.cpp.pk_cache_age 2014-08-25 13:51:50.000000000 -0500 ++++ apper-0.9.1/ApperKCM/ApperKCM.cpp 2015-04-27 14:22:58.971449606 -0500 +@@ -77,6 +77,7 @@ ApperKCM::ApperKCM(QWidget *parent, cons + m_findIcon("edit-find"), + m_cancelIcon("dialog-cancel"), + m_forceRefreshCache(false), ++ m_cacheAge(600) + m_history(0), + m_searchRole(Transaction::RoleUnknown) + { +@@ -760,6 +761,7 @@ void ApperKCM::refreshCache() + PkTransactionWidget *transactionW = new PkTransactionWidget(this); + connect(transactionW, SIGNAL(titleChangedProgress(QString)), this, SIGNAL(caption(QString))); + QPointer transaction = new PkTransaction(transactionW); ++ Daemon::setHints (QLatin1String("cache-age=")+QString::number(m_cacheAge)); + transaction->refreshCache(m_forceRefreshCache); + transactionW->setTransaction(transaction, Transaction::RoleRefreshCache); + +diff -up apper-0.9.1/ApperKCM/ApperKCM.h.pk_cache_age apper-0.9.1/ApperKCM/ApperKCM.h +--- apper-0.9.1/ApperKCM/ApperKCM.h.pk_cache_age 2014-08-25 13:51:50.000000000 -0500 ++++ apper-0.9.1/ApperKCM/ApperKCM.h 2015-04-27 14:22:01.562706932 -0500 +@@ -119,6 +119,7 @@ private: + FiltersMenu *m_filtersMenu; + Transaction::Roles m_roles; + bool m_forceRefreshCache; ++ uint m_cacheAge; + + TransactionHistory *m_history; + diff --git a/apper.spec b/apper.spec index 155cacf..ae03de0 100644 --- a/apper.spec +++ b/apper.spec @@ -10,7 +10,7 @@ Name: apper Version: 0.9.1 -Release: 8%{?dist} +Release: 9%{?dist} Summary: KDE interface for PackageKit License: GPLv2+ @@ -36,6 +36,8 @@ Patch26: 0026-Let-the-Backend-to-return-an-error-if-it-doesn-t-sup.patch # https://bugzilla.redhat.com/show_bug.cgi?id=877038 # http://bugs.kde.org/show_bug.cgi?id=315063 Patch50: apper-0.9.1-allow_deps.patch +# explicitly set PackageKit cache-age parameter, since PK defaults to something silly like inifinity. +Patch51: apper-0.9.1-pk_cache_age.patch Obsoletes: kpackagekit < 0.7.0 Provides: kpackagekit = %{version}-%{release} @@ -157,6 +159,9 @@ fi %changelog +* Mon Apr 27 2015 Rex Dieter 0.9.1-9 +- Apper won't check for updates (#1188207) + * Wed Apr 22 2015 Rex Dieter - 0.9.1-8 - Requires: plasma-pk-updates (#1214397) - use %%{?kde_runtime_requires} macro