From: Michael Mrozek Date: Thu, 16 Jun 2011 22:46:22 +0000 (+0200) Subject: pandora-pndstore: Added patch so it will work with our Python version X-Git-Tag: sz_beta3~132 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af2628d4cf813cb7be83b0be604b346260d39a4f;p=openpandora.oe.git pandora-pndstore: Added patch so it will work with our Python version --- diff --git a/recipes/pandora-system/pandora-pndstore.bb b/recipes/pandora-system/pandora-pndstore.bb index d6ba558..f9f8f13 100755 --- a/recipes/pandora-system/pandora-pndstore.bb +++ b/recipes/pandora-system/pandora-pndstore.bb @@ -1,12 +1,13 @@ DESCRIPTION = "Download and upgrade PND packages." LICENSE = "GPLv2" -PR = "r4" +PR = "r5" SRC_URI = " \ git://github.com/Tempel/PNDstore.git;protocol=git;branch=master \ file://_ctypes.so \ file://op_pndstore.desktop \ + file://0001-Fix-Deprecated-object__new__.patch;patch=1 \ " SRCREV = "af118e0619e58716ef58" diff --git a/recipes/pandora-system/pandora-pndstore/0001-Fix-Deprecated-object__new__.patch b/recipes/pandora-system/pandora-pndstore/0001-Fix-Deprecated-object__new__.patch new file mode 100644 index 0000000..e99054c --- /dev/null +++ b/recipes/pandora-system/pandora-pndstore/0001-Fix-Deprecated-object__new__.patch @@ -0,0 +1,21 @@ +diff --git a/pndstore_core/packages.py b/pndstore_core/packages.py +*** a/pndstore_core/packages.py 2011-06-17 00:30:14.869582901 +0200 +--- b/pndstore_core/packages.py 2011-06-17 00:32:36.216122544 +0200 +*************** +*** 127,133 **** + try: + return cls._existing[pkgid] + except KeyError: +! p = object.__new__(cls, pkgid) + cls._existing[pkgid] = p + return p + +--- 127,133 ---- + try: + return cls._existing[pkgid] + except KeyError: +! p = object.__new__(cls) + cls._existing[pkgid] = p + return p + +