From af2628d4cf813cb7be83b0be604b346260d39a4f Mon Sep 17 00:00:00 2001 From: Michael Mrozek Date: Fri, 17 Jun 2011 00:46:22 +0200 Subject: [PATCH] pandora-pndstore: Added patch so it will work with our Python version --- recipes/pandora-system/pandora-pndstore.bb | 3 ++- .../0001-Fix-Deprecated-object__new__.patch | 21 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 recipes/pandora-system/pandora-pndstore/0001-Fix-Deprecated-object__new__.patch 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 + + -- 2.39.2