pandora-pndstore: Added patch so it will work with our Python version
authorMichael Mrozek <EvilDragon@openpandora.de>
Thu, 16 Jun 2011 22:46:22 +0000 (00:46 +0200)
committerMichael Mrozek <EvilDragon@openpandora.de>
Thu, 16 Jun 2011 22:46:22 +0000 (00:46 +0200)
recipes/pandora-system/pandora-pndstore.bb
recipes/pandora-system/pandora-pndstore/0001-Fix-Deprecated-object__new__.patch [new file with mode: 0644]

index d6ba558..f9f8f13 100755 (executable)
@@ -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 (file)
index 0000000..e99054c
--- /dev/null
@@ -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
+