diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 17:47:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 17:47:31 +0000 |
commit | 236cb75e4430569627585a5818d9ce9bc85640f8 (patch) | |
tree | f84b5c0335eb76eb9df1e6c2c0004d7d9667c6e4 /debian/patches/meaningful-error-if-no-python3-markdown.patch | |
parent | Adding upstream version 2:4.17.12+dfsg. (diff) | |
download | samba-236cb75e4430569627585a5818d9ce9bc85640f8.tar.xz samba-236cb75e4430569627585a5818d9ce9bc85640f8.zip |
Adding debian version 2:4.17.12+dfsg-0+deb12u1.debian/2%4.17.12+dfsg-0+deb12u1debian
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.patch | 27 |
1 files changed, 27 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..2b21c5d --- /dev/null +++ b/debian/patches/meaningful-error-if-no-python3-markdown.patch @@ -0,0 +1,27 @@ +From 545162e59916b3bd712d2e8e52063278cf2bb7ca Mon Sep 17 00:00:00 2001 +From: Michael Tokarev <mjt@tls.msk.ru> +Date: Fri, 2 Dec 2022 11:08:27 +0300 +Subject: print meaningful error message if python3-markdown is not installed + +--- + python/samba/netcmd/domain.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/python/samba/netcmd/domain.py b/python/samba/netcmd/domain.py +index 2a548ed1ad4..cfbd602dce8 100644 +--- a/python/samba/netcmd/domain.py ++++ b/python/samba/netcmd/domain.py +@@ -4133,8 +4133,8 @@ class cmd_domain_schema_upgrade(Command): + try: + from samba.ms_schema_markdown import read_ms_markdown + except ImportError as e: +- self.outf.write("Exception in importing markdown: %s" % 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 + + updates_allowed_overridden = False +-- +2.30.2 + |