[anaconda][rhel7-branch/master][v2][PATCH] Don't attempt terminal size detection on the s390 (#1145065)

Samantha N. Bueno sbueno+anaconda at redhat.com
Mon Sep 22 18:19:49 UTC 2014


On Mon, Sep 22, 2014 at 07:05:40PM +0200, Martin Kolman wrote:
> Resolves: rhbz#1145065

Fixes the issue when I test it on my s390x guest. So, ack; thanks!

> Signed-off-by: Martin Kolman <mkolman at redhat.com>
> ---
>  pyanaconda/anaconda_argparse.py | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/pyanaconda/anaconda_argparse.py b/pyanaconda/anaconda_argparse.py
> index c5dc78d..6ec230d 100644
> --- a/pyanaconda/anaconda_argparse.py
> +++ b/pyanaconda/anaconda_argparse.py
> @@ -52,6 +52,15 @@ def get_help_width():
>      :returns: optimal help text width in number of characters
>      :rtype: integer
>      """
> +    # don't do terminal size detection on s390, it is not supported
> +    # by its arcane TTY system and only results in cryptic error messages
> +    # ending on the standard output
> +    # (we do the s390 detection here directly to avoid
> +    #  the delay caused by importing the Blivet module
> +    #  just for this single call)
> +    is_s390 = os.uname()[4].startswith('s390')
> +    if is_s390:
> +        return DEFAULT_HELP_WIDTH
>  
>      help_width = DEFAULT_HELP_WIDTH
>      try:
> -- 
> 1.9.3
> 
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches


More information about the anaconda-patches mailing list