summaryrefslogtreecommitdiff
path: root/debian/patches/gdbm-import.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/gdbm-import.diff')
-rw-r--r--debian/patches/gdbm-import.diff12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/patches/gdbm-import.diff b/debian/patches/gdbm-import.diff
new file mode 100644
index 0000000..2be2934
--- /dev/null
+++ b/debian/patches/gdbm-import.diff
@@ -0,0 +1,12 @@
+# DP: suggest installation of python3-gdbm package on failing _gdbm import
+
+--- a/Lib/dbm/gnu.py
++++ b/Lib/dbm/gnu.py
+@@ -1,3 +1,6 @@
+ """Provide the _gdbm module as a dbm submodule."""
+
+-from _gdbm import *
++try:
++ from _gdbm import *
++except ImportError as msg:
++ raise ImportError(str(msg) + ', please install the python3-gdbm package')