[Python-apps-commits] r5988 - in packages/screenlets/trunk/debian (3 files)
gilir-guest at users.alioth.debian.org
gilir-guest at users.alioth.debian.org
Sat Aug 21 16:17:56 UTC 2010
Date: Saturday, August 21, 2010 @ 16:17:51
Author: gilir-guest
Revision: 5988
Add 21-return-ip-address.patch from Ubuntu
Added:
packages/screenlets/trunk/debian/patches/21-return-ip-address.patch
Modified:
packages/screenlets/trunk/debian/changelog
packages/screenlets/trunk/debian/patches/series
Modified: packages/screenlets/trunk/debian/changelog
===================================================================
--- packages/screenlets/trunk/debian/changelog 2010-08-19 16:37:48 UTC (rev 5987)
+++ packages/screenlets/trunk/debian/changelog 2010-08-21 16:17:51 UTC (rev 5988)
@@ -2,6 +2,9 @@
* debian/patches/20-tomboy-update-path.patch: update with the new tomboy
path.
+ * debian/patches/21-return-ip-address.patch:
+ - Fix screenlets.sensors.net_get_ip() to get the IP address. Thanks
+ Michel Leunen for the patch. (LP: #618868)
-- Julien Lavergne <gilir at ubuntu.com> Sun, 08 Nov 2009 17:30:08 +0100
Added: packages/screenlets/trunk/debian/patches/21-return-ip-address.patch
===================================================================
--- packages/screenlets/trunk/debian/patches/21-return-ip-address.patch (rev 0)
+++ packages/screenlets/trunk/debian/patches/21-return-ip-address.patch 2010-08-21 16:17:51 UTC (rev 5988)
@@ -0,0 +1,15 @@
+Index: screenlets-0.1.2/src/lib/sensors.py
+===================================================================
+--- screenlets-0.1.2.orig/src/lib/sensors.py 2010-08-19 23:15:16.000000000 +0200
++++ screenlets-0.1.2/src/lib/sensors.py 2010-08-19 23:16:34.000000000 +0200
+@@ -518,8 +518,8 @@
+ ip = commands.getoutput("ifconfig")
+ x = 0
+ while True:
+- ip = ip[ip.find("inet addr:"):]
+- ip = ip[10:]
++ ip = ip[ip.find("inet adr:"):]
++ ip = ip[9:]
+ ipc = ip[:ip.find(chr(32))]
+ if ipc != '127.0.0.1' and ipc != None and ipc !='1':
+
Modified: packages/screenlets/trunk/debian/patches/series
===================================================================
--- packages/screenlets/trunk/debian/patches/series 2010-08-19 16:37:48 UTC (rev 5987)
+++ packages/screenlets/trunk/debian/patches/series 2010-08-21 16:17:51 UTC (rev 5988)
@@ -15,3 +15,4 @@
18-nowplaying-rb-playing.patch
19-remove-autostart-output.patch
20-tomboy-update-path.patch
+21-return-ip-address.patch
More information about the Python-apps-commits
mailing list