summaryrefslogtreecommitdiffstats
path: root/debian/patches/meaningful-error-if-no-python3-markdown.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:20:02 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:20:02 +0000
commit0a354ad0b2c9eaaa204c31db478da109dc6d2a8b (patch)
tree2467caa8ad20a7fca31bef64224e41a4238db0c9 /debian/patches/meaningful-error-if-no-python3-markdown.patch
parentAdding upstream version 2:4.20.0+dfsg. (diff)
downloadsamba-0a354ad0b2c9eaaa204c31db478da109dc6d2a8b.tar.xz
samba-0a354ad0b2c9eaaa204c31db478da109dc6d2a8b.zip
Adding debian version 2:4.20.0+dfsg-1~exp1.debian/2%4.20.0+dfsg-1_exp1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/meaningful-error-if-no-python3-markdown.patch')
-rw-r--r--debian/patches/meaningful-error-if-no-python3-markdown.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/meaningful-error-if-no-python3-markdown.patch b/debian/patches/meaningful-error-if-no-python3-markdown.patch
new file mode 100644
index 0000000..80ffd73
--- /dev/null
+++ b/debian/patches/meaningful-error-if-no-python3-markdown.patch
@@ -0,0 +1,24 @@
+From: Michael Tokarev <mjt@tls.msk.ru>
+Date: Fri, 2 Dec 2022 11:08:27 +0300
+Updated: Thu, 03 Aug 2023 17:10:59 +0300
+Subject: print meaningful error message if python3-markdown is not installed
+Debian-Specific: yes
+Forwarded: not-needed
+
+---
+ python/samba/netcmd/domain/schemaupgrade.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/python/samba/netcmd/domain/schemaupgrade.py b/python/samba/netcmd/domain/schemaupgrade.py
+index 1d67ab58c15..858802635a2 100644
+--- a/python/samba/netcmd/domain/schemaupgrade.py
++++ b/python/samba/netcmd/domain/schemaupgrade.py
+@@ -229,6 +229,6 @@ class cmd_domain_schema_upgrade(Command):
+ from samba.ms_schema_markdown import read_ms_markdown
+ except ImportError as e:
+- self.outf.write("Exception in importing markdown: %s\n" % e)
+- raise CommandError('Failed to import module markdown')
++ self.outf.write("Exception in importing markdown: %s\n" % e)
++ raise CommandError('Failed to import module markdown, please install python3-markdown package')
+ from samba.schema import Schema
+