diff --git a/apper-0.7.1-observe-battery.patch b/apper-0.7.1-observe-battery.patch new file mode 100644 index 0000000..b84f0d7 --- /dev/null +++ b/apper-0.7.1-observe-battery.patch @@ -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; diff --git a/apper.spec b/apper.spec index d9bdaa2..8e3c81b 100644 --- a/apper.spec +++ b/apper.spec @@ -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 0.7.1-5 +- respect the settings and don't check for updates when on battery + * Wed Apr 25 2012 Rex Dieter 0.7.1-4 - rebuild (PackageKit-qt)