From 9f6d68092083c3c588a45f3100e01b3bfaa50da7 Mon Sep 17 00:00:00 2001 From: liubo Date: Fri, 13 Oct 2023 16:08:51 +0800 Subject: [PATCH] Ensure that all output reaches the client when daemonized Signed-off-by: liubo --- ...output-reaches-the-client-when-daemo.patch | 25 +++++++++++++++++++ python-configshell.spec | 7 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0001-Ensure-that-all-output-reaches-the-client-when-daemo.patch diff --git a/0001-Ensure-that-all-output-reaches-the-client-when-daemo.patch b/0001-Ensure-that-all-output-reaches-the-client-when-daemo.patch new file mode 100644 index 0000000..5674fd7 --- /dev/null +++ b/0001-Ensure-that-all-output-reaches-the-client-when-daemo.patch @@ -0,0 +1,25 @@ +From 949c674b807ddfb312cbac234b1b995066c77dad Mon Sep 17 00:00:00 2001 +From: Matt Coleman +Date: Thu, 7 Nov 2019 19:43:57 -0500 +Subject: [PATCH] Ensure that all output reaches the client when daemonized + +--- + configshell/console.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configshell/console.py b/configshell/console.py +index 8ed6b50..003a855 100644 +--- a/configshell/console.py ++++ b/configshell/console.py +@@ -191,7 +191,7 @@ class Console(object): + break + else: + clean_text = text +- self.raw_write(clean_text) ++ self.raw_write(clean_text, output=self._stdout) + + def indent(self, text, margin=2): + ''' +-- +2.42.0.windows.2 + diff --git a/python-configshell.spec b/python-configshell.spec index 3c5e547..193f392 100644 --- a/python-configshell.spec +++ b/python-configshell.spec @@ -4,12 +4,14 @@ Name: python-configshell Summary: Python library that provides a framework for building simple but nice CLI-based applications. Version: 1.1.27 -Release: 3 +Release: 4 License: ASL 2.0 URL: https://github.com/open-iscsi/configshell-fb Source0: https://github.com/open-iscsi/configshell-fb/archive/v1.1.27.tar.gz BuildArch: noarch +Patch01: 0001-Ensure-that-all-output-reaches-the-client-when-daemo.patch + %global _description\ %{name} is a Python library that provides a framework for building simple but nice CLI-based applications.\ This runs with Python 3 and python 3 is run by setup.py to run on Python 3.\ @@ -47,6 +49,9 @@ popd %doc README.md %changelog +* Fri Oct 13 2023 liubo - 0.37.0-4 +- Ensure that all output reaches the client when daemonized + * Wed Oct 21 2020 zhangtao - 1.1.27-3 - delete python2