Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 579163 Details for
Bug 752564
Apper wakes up yumBackend.py every 5 to 10 minutes
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
[PATCH] revert part of upstream patch + some extra's
apper-0.7.1-wakeups_1.patch (text/plain), 5.28 KB, created by
Martin Kho
on 2012-04-21 12:19:46 UTC
(
hide
)
Description:
[PATCH] revert part of upstream patch + some extra's
Filename:
MIME Type:
Creator:
Martin Kho
Created:
2012-04-21 12:19:46 UTC
Size:
5.28 KB
patch
obsolete
>diff -Nur apper-0.7.1.orig/apperd/apperd.cpp apper-0.7.1/apperd/apperd.cpp >--- apper-0.7.1.orig/apperd/apperd.cpp 2012-04-21 13:58:06.814615920 +0200 >+++ apper-0.7.1/apperd/apperd.cpp 2012-04-21 14:09:00.559485569 +0200 >@@ -56,6 +56,19 @@ > connect(m_qtimer, SIGNAL(timeout()), this, SLOT(poll())); > m_qtimer->start(FIVE_MIN); > >+ // Make sure we know is Sentinel is running >+ QDBusServiceWatcher *watcher; >+ watcher = new QDBusServiceWatcher(QLatin1String("org.kde.ApperSentinel"), >+ QDBusConnection::sessionBus(), >+ QDBusServiceWatcher::WatchForOwnerChange, >+ this); >+ connect(watcher, SIGNAL(serviceOwnerChanged(QString,QString,QString)), >+ this, SLOT(serviceOwnerChanged(QString,QString,QString))); >+ >+ // Check if Sentinel is running >+ m_sentinelIsRunning = nameHasOwner(QLatin1String("org.kde.ApperSentinel"), >+ QDBusConnection::sessionBus()); >+ > // Watch for TransactionListChanged so we start sentinel > QDBusConnection::systemBus().connect(QLatin1String(""), > QLatin1String(""), >@@ -81,19 +94,6 @@ > connect(confWatch, SIGNAL(deleted(QString)), this, SLOT(configFileChanged())); > confWatch->startScan(); > >- // Make sure we know is Sentinel is running >- QDBusServiceWatcher *watcher; >- watcher = new QDBusServiceWatcher(QLatin1String("org.kde.ApperSentinel"), >- QDBusConnection::sessionBus(), >- QDBusServiceWatcher::WatchForOwnerChange, >- this); >- connect(watcher, SIGNAL(serviceOwnerChanged(QString,QString,QString)), >- this, SLOT(serviceOwnerChanged(QString,QString,QString))); >- >- // Check if Sentinel is running >- m_sentinelIsRunning = nameHasOwner(QLatin1String("org.kde.ApperSentinel"), >- QDBusConnection::sessionBus()); >- > // if PackageKit is running check to see if there are running transactons already > if (!m_sentinelIsRunning && nameHasOwner(QLatin1String("org.freedesktop.PackageKit"), > QDBusConnection::systemBus())) { >@@ -116,28 +116,30 @@ > > void ApperD::poll() > { >- if (m_lastRefreshCache.isNull()) { >- // This value wasn't set >- // convert this to QDateTime >- m_lastRefreshCache = getTimeSinceRefreshCache(); >- } >- >- // If check for updates is active >- if (m_refreshCacheInterval != Enum::Never) { >- uint maxTime = QDateTime::currentDateTime().toTime_t() - m_refreshCacheInterval; >- // If lastRefreshCache is null it means that the cache was never refreshed >- if (m_lastRefreshCache.isNull() || m_lastRefreshCache.toTime_t() < maxTime) { >- callApperSentinel(QLatin1String("RefreshAndUpdate")); >+ if (!m_sentinelIsRunning) { >+ if (m_lastRefreshCache.isNull()) { >+ // This value wasn't set >+ // convert this to QDateTime >+ m_lastRefreshCache = getTimeSinceRefreshCache(); >+ } > >- // Invalidate the last time the cache was refreshed >- m_lastRefreshCache = QDateTime(); >+ // If check for updates is active >+ if (m_refreshCacheInterval != Enum::Never) { >+ uint maxTime = QDateTime::currentDateTime().toTime_t() - m_refreshCacheInterval; >+ // If lastRefreshCache is null it means that the cache was never refreshed >+ if (m_lastRefreshCache.isNull() || m_lastRefreshCache.toTime_t() < maxTime) { >+ callApperSentinel(QLatin1String("RefreshAndUpdate")); >+ >+ // Invalidate the last time the cache was refreshed >+ m_lastRefreshCache = QDateTime(); >+ } > } >- } > >- // display or update the system >- if (!m_showedUpdates) { >- m_showedUpdates = true; // don't do that so often >- callApperSentinel(QLatin1String("Update")); >+ // display or update the system >+ if (!m_showedUpdates) { >+ m_showedUpdates = true; // don't do that so often >+ callApperSentinel(QLatin1String("Update")); >+ } > } > } > >@@ -162,20 +164,25 @@ > message << static_cast<uint>(0); > QDBusConnection::sessionBus().send(message); > } >- >- if (tids.isEmpty()) { >- // update the last time the cache was refreshed >- // TODO PackageKit should emit a property change for this >- m_lastRefreshCache = getTimeSinceRefreshCache(); >- } >+// revert this part of patch .wakeups because it, for me unknown reason, >+// 'blocks' doing updates. Martin Kho >+/* >+ * if (tids.isEmpty()) { >+ * // update the last time the cache was refreshed >+ * // TODO PackageKit should emit a property change for this >+ * m_lastRefreshCache = getTimeSinceRefreshCache(); >+ * } >+ */ > } > > void ApperD::updatesChanged() > { > // - update time since last refresh > // - reset showed updates to display this change >- getTimeSinceRefreshCache(); >- m_showedUpdates = false; >+ if (!m_sentinelIsRunning) { >+ getTimeSinceRefreshCache(); >+ m_showedUpdates = false; >+ } > } > > void ApperD::serviceOwnerChanged(const QString &serviceName, const QString &oldOwner, const QString &newOwner)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 752564
:
577327
|
577834
|
578566
| 579163