[oe-commits] Yann Dirson : python-xdg: prevent infinite recursion in xdg.DesktopEntry. __cmp__().
git version control
git at git.openembedded.org
Fri Nov 12 05:06:39 UTC 2010
Module: openembedded.git
Branch: testing-next
Commit: 1d90315fad93be9fc74194a7d227c9e3c25201b1
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=1d90315fad93be9fc74194a7d227c9e3c25201b1
Author: Yann Dirson <ydirson at free.fr>
Date: Tue Aug 3 13:01:20 2010 +0000
python-xdg: prevent infinite recursion in xdg.DesktopEntry.__cmp__().
Delete cmp method which has been dropped from later releases.
Signed-off-by: Yann Dirson <ydirson at altern.org>
Signed-off-by: Eric Bénard <eric at eukrea.com>
---
recipes/python/python-pyxdg/desktopentry-cmp.patch | 15 +++++++++++++++
recipes/python/python-pyxdg_0.15.bb | 4 +++-
2 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/recipes/python/python-pyxdg/desktopentry-cmp.patch b/recipes/python/python-pyxdg/desktopentry-cmp.patch
new file mode 100644
index 0000000..bb2905a
--- /dev/null
+++ b/recipes/python/python-pyxdg/desktopentry-cmp.patch
@@ -0,0 +1,15 @@
+This method definition causes an infinite recursion, and has been dropped
+from later releases.
+
+--- pyxdg-0.15/xdg/DesktopEntry.py.orig 2010-08-03 03:01:34.000000000 +0200
++++ pyxdg-0.15/xdg/DesktopEntry.py 2010-08-03 03:01:46.000000000 +0200
+@@ -29,9 +29,6 @@
+ def __str__(self):
+ return self.getName()
+
+- def __cmp__(self, other):
+- return cmp(self, other)
+-
+ def parse(self, file):
+ IniFile.parse(self, file, ["Desktop Entry", "KDE Desktop Entry"])
+
diff --git a/recipes/python/python-pyxdg_0.15.bb b/recipes/python/python-pyxdg_0.15.bb
index 018af50..67b6c97 100644
--- a/recipes/python/python-pyxdg_0.15.bb
+++ b/recipes/python/python-pyxdg_0.15.bb
@@ -1,9 +1,11 @@
DESCRIPTION = "PyXDG is a python library to access freedesktop.org standards"
SECTION = "devel/python"
LICENSE = "GPL"
-PR = "r1"
+PR = "r2"
SRC_URI = "http://www.freedesktop.org/~lanius/pyxdg-${PV}.tar.gz"
+SRC_URI += "file://desktopentry-cmp.patch"
+
S = "${WORKDIR}/pyxdg-${PV}"
inherit distutils
More information about the Openembedded-commits
mailing list