[apper] Apper ignores "never check for updates" option (#948099)

Rex Dieter rdieter at fedoraproject.org
Mon Apr 29 13:46:18 UTC 2013


commit 8c9b68eb234771c43958793ecd94de99bb86b505
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Mon Apr 29 08:46:17 2013 -0500

    Apper ignores "never check for updates" option (#948099)

 0100-pk-cache-update-debugging.patch |   39 ++++++++++++++++++++++++++++++++++
 apper.spec                           |    7 +++++-
 2 files changed, 45 insertions(+), 1 deletions(-)
---
diff --git a/0100-pk-cache-update-debugging.patch b/0100-pk-cache-update-debugging.patch
new file mode 100644
index 0000000..30109d4
--- /dev/null
+++ b/0100-pk-cache-update-debugging.patch
@@ -0,0 +1,39 @@
+From 80ee30993a9b656b1fc23e9abec98f93deabf448 Mon Sep 17 00:00:00 2001
+From: Rex Dieter <rdieter at math.unl.edu>
+Date: Mon, 29 Apr 2013 08:43:42 -0500
+Subject: [PATCH] cache update debuging
+
+---
+ apperd/ApperdThread.cpp | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/apperd/ApperdThread.cpp b/apperd/ApperdThread.cpp
+index cce7d2d..cd49de8 100644
+--- a/apperd/ApperdThread.cpp
++++ b/apperd/ApperdThread.cpp
+@@ -163,6 +163,9 @@ void ApperdThread::poll()
+         m_lastRefreshCache = getTimeSinceRefreshCache();
+     }
+ 
++    qDebug() << "CHECKING FOR UPDATES (poll)";
++    qDebug() << "interval:" << m_configs[CFG_INTERVAL].value<uint>();
++
+     // If check for updates is active
+     if (m_configs[CFG_INTERVAL].value<uint>() != Enum::Never) {
+         // Find out how many seconds passed since last refresh cache
+@@ -254,6 +257,12 @@ void ApperdThread::setProxy()
+ 
+ void ApperdThread::updatesChanged()
+ {
++    qDebug() << "UPDATES CHANGED";
++    qDebug() << "interval:" << m_configs[CFG_INTERVAL].value<uint>();
++
++    if (m_configs[CFG_INTERVAL].value<uint>() == Enum::Never)
++        return;
++
+     // update the last time the cache was refreshed
+     QDateTime lastCacheRefresh;
+     lastCacheRefresh = getTimeSinceRefreshCache();
+-- 
+1.8.1.4
+
diff --git a/apper.spec b/apper.spec
index 5525609..226c030 100644
--- a/apper.spec
+++ b/apper.spec
@@ -7,7 +7,7 @@
 
 Name:    apper
 Version: 0.8.0
-Release: 3%{?dist}
+Release: 4%{?dist}
 Summary: KDE interface for PackageKit
 
 License: GPLv2+
@@ -46,6 +46,8 @@ Patch119: 0019-Connect-to-finished-signal-of-ApplicationLaunch-in-o.patch
 Patch120: 0020-Allow-PackageDetails-to-show-screenshots-from-softwa.patch
 Patch121: 0021-Update-the-last-refresh-cache-time-from-the-update-c.patch
 Patch122: 0022-Add-some-margins-to-the-plasmoid.patch
+# hack around https://bugzilla.redhat.com/948099
+Patch200: 0100-pk-cache-update-debugging.patch
 
 
 Obsoletes: kpackagekit < 0.7.0
@@ -166,6 +168,9 @@ fi
 
 
 %changelog
+* Mon Apr 29 2013 Rex Dieter <rdieter at fedoraproject.org> 0.8.0-4
+- Apper ignores "never check for updates" option (#948099)
+
 * Wed Feb 13 2013 Rex Dieter <rdieter at fedoraproject.org> 0.8.0-3
 - a few more upstream fixes
 


More information about the scm-commits mailing list