From: Stuart Prescott Date: Tue, 7 Apr 2026 05:03:45 +0000 (+1000) Subject: Extend timeout in debian/make-manpages and make it non-fatal X-Git-Tag: archive/raspbian/6.10.3-2+rpi1^2~15 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=719f1fdae72b3a9c0c9039eb1bf19d8c59ea8021;p=pyside6.git Extend timeout in debian/make-manpages and make it non-fatal Closes: #1132528 --- diff --git a/debian/make-manpages b/debian/make-manpages index b0eea78e..92c30343 100755 --- a/debian/make-manpages +++ b/debian/make-manpages @@ -56,11 +56,19 @@ def _run_help2man(tool, toolname, help_opt): print(f"I: {''.join(cmd_summary)}") # Run the tool - ret = subprocess.run(cmd, capture_output=True, timeout=10, encoding="UTF-8", env=env) - if ret.returncode != 0: - print(f"W: returned: {ret.returncode}:\n") - print(textwrap.indent(ret.stdout, "W: ")) - print(textwrap.indent(ret.stderr, "W: ")) + try: + subprocess.run( + cmd, + capture_output=True, + check=True, + timeout=180, + encoding="UTF-8", + env=env, + ) + except (subprocess.CalledProcessError, subprocess.TimeoutExpired) as e: + print(f"W: {e}:\n") + print(textwrap.indent(e.stdout, "W: ")) + print(textwrap.indent(e.stderr, "W: ")) # PATH CONFIG FOR TOOL