From f4dcb5cb43b68e265512a03a160bdda634818b43 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Dec 2011 23:14:49 +0000 Subject: Tue Dec 13 23:14:49 UTC 2011 --- libre/python2-libre/gdbm-magic-values.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libre/python2-libre/gdbm-magic-values.patch (limited to 'libre/python2-libre/gdbm-magic-values.patch') diff --git a/libre/python2-libre/gdbm-magic-values.patch b/libre/python2-libre/gdbm-magic-values.patch new file mode 100644 index 000000000..5613ae35c --- /dev/null +++ b/libre/python2-libre/gdbm-magic-values.patch @@ -0,0 +1,14 @@ +diff -up Python-2.7.2/Lib/whichdb.py.gdbm-1.9-magic Python-2.7.2/Lib/whichdb.py +--- Python-2.7.2/Lib/whichdb.py.gdbm-1.9-magic 2011-06-11 11:46:26.000000000 -0400 ++++ Python-2.7.2/Lib/whichdb.py 2011-09-30 15:45:21.778872290 -0400 +@@ -91,7 +91,7 @@ def whichdb(filename): + 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 +diff -up Python-2.7.2/Misc/NEWS.gdbm-1.9-magic Python-2.7.2/Misc/NEWS + -- cgit v1.2.3-54-g00ecf