aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/python/files/2.6/25_all_gdbm-1.9.patch')
-rw-r--r--dev-lang/python/files/2.6/25_all_gdbm-1.9.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-lang/python/files/2.6/25_all_gdbm-1.9.patch b/dev-lang/python/files/2.6/25_all_gdbm-1.9.patch
new file mode 100644
index 0000000..85c991b
--- /dev/null
+++ b/dev-lang/python/files/2.6/25_all_gdbm-1.9.patch
@@ -0,0 +1,14 @@
+http://bugs.python.org/issue13007
+http://hg.python.org/cpython/rev/14cafb8d1480
+
+--- Lib/whichdb.py
++++ Lib/whichdb.py
+@@ -91,7 +91,7 @@
+ return ""
+
+ # Check for GNU dbm
+- if magic == 0x13579ace:
++ if magic in (0x13579ace, 0x13579acd, 0x13579acf):
+ return "gdbm"
+
+ # Check for old Berkeley db hash file format v2