respect the settings and don't check for updates when on battery
This commit is contained in:
parent
0c96aa8a47
commit
fb8bdf1173
2 changed files with 33 additions and 1 deletions
26
apper-0.7.1-observe-battery.patch
Normal file
26
apper-0.7.1-observe-battery.patch
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
diff --git a/Sentinel/UpdateIcon.cpp b/Sentinel/UpdateIcon.cpp
|
||||
index ac88df6..355663b 100644
|
||||
--- a/Sentinel/UpdateIcon.cpp
|
||||
+++ b/Sentinel/UpdateIcon.cpp
|
||||
@@ -307,7 +307,7 @@ bool UpdateIcon::systemIsReady(bool checkUpdates)
|
||||
|
||||
// test whether network is connected
|
||||
if (networkState == Daemon::NetworkOffline || networkState == Daemon::UnknownNetwork) {
|
||||
- kDebug() << "nerwork state" << networkState;
|
||||
+ kDebug() << "network state" << networkState;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -320,11 +320,10 @@ bool UpdateIcon::systemIsReady(bool checkUpdates)
|
||||
ignoreBattery = checkUpdateGroup.readEntry("installUpdatesOnBattery", false);
|
||||
}
|
||||
|
||||
- // THIS IS NOT working on my computer
|
||||
// check how applications should behave (e.g. on battery power)
|
||||
if (!ignoreBattery && Solid::PowerManagement::appShouldConserveResources()) {
|
||||
-// return false;
|
||||
kDebug() << "should conserve??";
|
||||
+ return false;
|
||||
}
|
||||
|
||||
bool ignoreMobile;
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
Name: apper
|
||||
Version: 0.7.1
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: KDE interface for PackageKit
|
||||
|
||||
License: GPLv2+
|
||||
|
|
@ -22,6 +22,8 @@ URL: http://kde-apps.org/content/show.php/Apper?content=84745
|
|||
# followup to patch101 below, fixes/works-around some other various
|
||||
# related issues, and avoids a deadlock
|
||||
Patch50: apper-0.7.1-wakeups-2.patch
|
||||
# respect the settings and don't check for updates when on battery
|
||||
Patch51: apper-0.7.1-observe-battery.patch
|
||||
|
||||
## upstream patches
|
||||
# 806508 - "Unsigned packages" popup constantly reappears
|
||||
|
|
@ -57,6 +59,7 @@ KDE interface for PackageKit.
|
|||
%patch100 -p1 -b .untrusted
|
||||
%patch101 -p1 -b .wakeups
|
||||
%patch50 -p1 -b .wakeups-2
|
||||
%patch51 -p1 -b .observe-battery
|
||||
|
||||
|
||||
%build
|
||||
|
|
@ -114,6 +117,9 @@ desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/apper.deskt
|
|||
|
||||
|
||||
%changelog
|
||||
* Mon May 7 2012 Lukáš Tinkl <ltinkl@redhat.com> 0.7.1-5
|
||||
- respect the settings and don't check for updates when on battery
|
||||
|
||||
* Wed Apr 25 2012 Rex Dieter <rdieter@fedoraproject.org> 0.7.1-4
|
||||
- rebuild (PackageKit-qt)
|
||||
|
||||
|
|
|
|||
Reference in a new issue