From 324445b861576465296ef56a3d50ebf8a82f52ca Mon Sep 17 00:00:00 2001 From: Slavek Banko Date: Tue, 25 Jul 2006 21:57:01 +0200 Subject: [PATCH] opie-batteryapplet: fix battery status for iPAQs running Linux 2.6 Signed-off-by: Rene Wagner --- .../files/iPaq-2.6-batteryapplet.patch | 16 ++++++++++++++++ .../opie-batteryapplet_1.2.1.bb | 5 +++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 org.handhelds.familiar/packages/opie-batteryapplet/files/iPaq-2.6-batteryapplet.patch diff --git a/org.handhelds.familiar/packages/opie-batteryapplet/files/iPaq-2.6-batteryapplet.patch b/org.handhelds.familiar/packages/opie-batteryapplet/files/iPaq-2.6-batteryapplet.patch new file mode 100644 index 0000000..b56e2c3 --- /dev/null +++ b/org.handhelds.familiar/packages/opie-batteryapplet/files/iPaq-2.6-batteryapplet.patch @@ -0,0 +1,16 @@ +diff -aruN batteryapplet.orig/batterystatus.cpp batteryapplet/batterystatus.cpp +--- batteryapplet.orig/batterystatus.cpp 2005-06-14 20:14:38.000000000 +0200 ++++ batteryapplet/batterystatus.cpp 2006-05-28 23:56:44.000000000 +0200 +@@ -81,11 +81,9 @@ + } + } + } +- } else { +- QMessageBox::warning(this, tr("Failure"),tr("could not open file")); ++ procApmIpaq.close(); + } + +- procApmIpaq.close(); + jackPercent = perc2.toInt(); + ipaqPercent = perc1.toInt(); + diff --git a/org.handhelds.familiar/packages/opie-batteryapplet/opie-batteryapplet_1.2.1.bb b/org.handhelds.familiar/packages/opie-batteryapplet/opie-batteryapplet_1.2.1.bb index 3feba24..501ff32 100644 --- a/org.handhelds.familiar/packages/opie-batteryapplet/opie-batteryapplet_1.2.1.bb +++ b/org.handhelds.familiar/packages/opie-batteryapplet/opie-batteryapplet_1.2.1.bb @@ -1,7 +1,8 @@ include ${PN}.inc -PR = "r1" +PR = "r2" SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/core/applets/batteryapplet \ ${HANDHELDS_CVS};tag=${TAG};module=opie/pics \ - ${HANDHELDS_CVS};tag=${TAG};module=opie/apps" + ${HANDHELDS_CVS};tag=${TAG};module=opie/apps \ + file://iPaq-2.6-batteryapplet.patch;patch=1" -- 2.41.1