Bug 1201638

Summary: zypper lr output garbled when tty too small
Product: [openSUSE] openSUSE Tumbleweed Reporter: Ludwig Nussel <lnussel>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: mrmazda
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ludwig Nussel 2022-07-19 09:37:21 UTC
in a default 80x24 xterm, default zypper lr output is garbled.

Repository priorities are without effect. All enabled repositories share the sam
e priority.

# | Alias               | Name                                   | Enabled | GPG
  Check | Refresh
--+---------------------+----------------------------------------+---------+----
-------+--------
1 | openSUSE-20200326-0 | openSUSE-20200326-0 (20220110)         | Yes     | (r 
) Yes  | Yes
2 | repo-debug          | openSUSE-Tumbleweed-Debug              | Yes     | (r 
) Yes  | Yes
3 | repo-non-oss        | openSUSE-Tumbleweed-Non-Oss (20220110) | Yes     | (r 
) Yes  | Yes
4 | repo-source         | openSUSE-Tumbleweed-Source             | No      | ---
-      | ----
5 | repo-update         | openSUSE-Tumbleweed-Update             | Yes     | (r 
) Yes  | Yes


Readability could be improved by limiting column width and shortening the content.
Comment 1 Michael Andres 2022-07-20 10:20:52 UTC
As a fast fix I enabled shortening the Name column:

#  | Alias                     | Name            | Enabled | GPG Check | Refresh
---+---------------------------+-----------------+---------+-----------+--------
 1 | CA                        | SUSE-CA-15.2 -> | Yes     | (r ) Yes  | Yes
 2 | KDE3                      | KDE3 (15.2)     | Yes     | (r ) Yes  | Yes
 3 | LOCAL                     | LOCAL           | Yes     | (  ) No   | Yes
 4 | Local_Repo                | Local_Repo      | Yes     | (  ) No   | Yes
 5 | devel:libraries           | devel:libraries | No      | ----      | ----
 6 | google-chrome             | google-chrome   | Yes     | (r ) Yes  | Yes
 7 | ms-teams                  | ms-teams        | No      | ----      | ----
 8 | multimedia:apps           | multimedia:apps | No      | ----      | ----
 9 | packman                   | packman (15.2)  | Yes     | (r ) Yes  | Yes
10 | repo-debug                | openSUSE-Leap-> | No      | ----      | ----
11 | repo-debug-non-oss        | openSUSE-Leap-> | No      | ----      | ----
12 | repo-debug-update         | openSUSE-Leap-> | No      | ----      | ----
13 | repo-debug-update-non-oss | openSUSE-Leap-> | No      | ----      | ----
14 | repo-non-oss              | openSUSE-Leap-> | Yes     | (r ) Yes  | Yes
15 | repo-oss                  | openSUSE-Leap-> | Yes     | (r ) Yes  | Yes
16 | repo-source               | openSUSE-Leap-> | No      | ----      | ----
17 | repo-source-non-oss       | openSUSE-Leap-> | No      | ----      | ----
18 | repo-update               | openSUSE-Leap-> | Yes     | (r ) Yes  | Yes
19 | repo-update-non-oss       | OpenSUSE-Leap-> | Yes     | (r ) Yes  | Yes

Long term we may need an enhanced layout.

In zypper-1.14.55
Comment 2 Ludwig Nussel 2022-07-20 14:07:29 UTC
Those yes/no columns waste quite some space and also the name is mostly not useful in the shell anyway. So could reduce it to something like that:

| # | egr | Alias               |
|---|-----|---------------------|
| 1 | ++- | repo-non-oss        |
| 2 | ++- | repo-oss            |
| 2 | +++ | repo-update         |
| 4 | +++ | repo-update-non-oss |

e = enabled (-e/-d)
g = gpg check (-g/-G)
r = refresh (-f/-F)
Comment 3 Felix Miata 2022-07-21 04:27:06 UTC
cf. bug 1195305
Comment 7 Swamp Workflow Management 2022-09-09 07:20:40 UTC
SUSE-RU-2022:3222-1: An update that has 5 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1199895,1200993,1201092,1201576,1201638
CVE References: 
JIRA References: 
Sources used:
SUSE Linux Enterprise Server for SAP 15 (src):    libzypp-17.31.0-150000.3.101.1, zypper-1.14.55-150000.3.75.1
SUSE Linux Enterprise Server 15-LTSS (src):    libzypp-17.31.0-150000.3.101.1, zypper-1.14.55-150000.3.75.1
SUSE Linux Enterprise Installer 15 (src):    libzypp-17.31.0-150000.3.101.1, zypper-1.14.55-150000.3.75.1
SUSE Linux Enterprise High Performance Computing 15-LTSS (src):    libzypp-17.31.0-150000.3.101.1, zypper-1.14.55-150000.3.75.1
SUSE Linux Enterprise High Performance Computing 15-ESPOS (src):    libzypp-17.31.0-150000.3.101.1, zypper-1.14.55-150000.3.75.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 8 Swamp Workflow Management 2022-09-09 07:21:37 UTC
SUSE-RU-2022:3220-1: An update that has 5 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1199895,1200993,1201092,1201576,1201638
CVE References: 
JIRA References: 
Sources used:
openSUSE Leap 15.4 (src):    libzypp-17.31.0-150400.3.6.1, zypper-1.14.55-150400.3.6.1
SUSE Linux Enterprise Module for Basesystem 15-SP4 (src):    libzypp-17.31.0-150400.3.6.1, zypper-1.14.55-150400.3.6.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 9 Swamp Workflow Management 2022-09-09 07:22:53 UTC
SUSE-RU-2022:3221-1: An update that has 5 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1199895,1200993,1201092,1201576,1201638
CVE References: 
JIRA References: 
Sources used:
SUSE Linux Enterprise Server for SAP 15-SP1 (src):    libzypp-17.31.0-150100.3.84.1, zypper-1.14.55-150100.3.61.1
SUSE Linux Enterprise Server 15-SP1-LTSS (src):    libzypp-17.31.0-150100.3.84.1, zypper-1.14.55-150100.3.61.1
SUSE Linux Enterprise Server 15-SP1-BCL (src):    libzypp-17.31.0-150100.3.84.1, zypper-1.14.55-150100.3.61.1
SUSE Linux Enterprise Installer 15-SP1 (src):    libzypp-17.31.0-150100.3.84.1
SUSE Linux Enterprise High Performance Computing 15-SP1-LTSS (src):    libzypp-17.31.0-150100.3.84.1, zypper-1.14.55-150100.3.61.1
SUSE Linux Enterprise High Performance Computing 15-SP1-ESPOS (src):    libzypp-17.31.0-150100.3.84.1, zypper-1.14.55-150100.3.61.1
SUSE Enterprise Storage 6 (src):    libzypp-17.31.0-150100.3.84.1, zypper-1.14.55-150100.3.61.1
SUSE CaaS Platform 4.0 (src):    libzypp-17.31.0-150100.3.84.1, zypper-1.14.55-150100.3.61.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 10 Swamp Workflow Management 2022-09-09 07:24:37 UTC
SUSE-RU-2022:3223-1: An update that has 5 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1199895,1200993,1201092,1201576,1201638
CVE References: 
JIRA References: 
Sources used:
openSUSE Leap Micro 5.2 (src):    libzypp-17.31.0-150200.42.1, zypper-1.14.55-150200.36.1
openSUSE Leap 15.3 (src):    libzypp-17.31.0-150200.42.1, zypper-1.14.55-150200.36.1
SUSE Manager Server 4.1 (src):    libzypp-17.31.0-150200.42.1, zypper-1.14.55-150200.36.1
SUSE Manager Retail Branch Server 4.1 (src):    libzypp-17.31.0-150200.42.1, zypper-1.14.55-150200.36.1
SUSE Manager Proxy 4.1 (src):    libzypp-17.31.0-150200.42.1, zypper-1.14.55-150200.36.1
SUSE Linux Enterprise Server for SAP 15-SP2 (src):    libzypp-17.31.0-150200.42.1, zypper-1.14.55-150200.36.1
SUSE Linux Enterprise Server 15-SP2-LTSS (src):    libzypp-17.31.0-150200.42.1, zypper-1.14.55-150200.36.1
SUSE Linux Enterprise Server 15-SP2-BCL (src):    libzypp-17.31.0-150200.42.1, zypper-1.14.55-150200.36.1
SUSE Linux Enterprise Module for Basesystem 15-SP3 (src):    libzypp-17.31.0-150200.42.1, zypper-1.14.55-150200.36.1
SUSE Linux Enterprise Micro 5.2 (src):    libzypp-17.31.0-150200.42.1, zypper-1.14.55-150200.36.1
SUSE Linux Enterprise Micro 5.1 (src):    libzypp-17.31.0-150200.42.1, zypper-1.14.55-150200.36.1
SUSE Linux Enterprise Installer 15-SP2 (src):    libzypp-17.31.0-150200.42.1
SUSE Linux Enterprise High Performance Computing 15-SP2-LTSS (src):    libzypp-17.31.0-150200.42.1, zypper-1.14.55-150200.36.1
SUSE Linux Enterprise High Performance Computing 15-SP2-ESPOS (src):    libzypp-17.31.0-150200.42.1, zypper-1.14.55-150200.36.1
SUSE Enterprise Storage 7 (src):    libzypp-17.31.0-150200.42.1, zypper-1.14.55-150200.36.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.