Closed arozyev closed 7 months ago
This is to make outputs of zypper ls
and zypper lr
consistent, it changes zypper lr
output to align row numbers to the left. That is in particular helps to address an issue of the incorrect bash-auto-completion (i.e. zypper mr <tab>
doesn't print full list of repositories).
Example output: 1) before
> zypper lr
Repository priorities are without effect. All enabled repositories share the same priority.
# | Alias | Name | Enabled | GPG Check | Refresh
---+---------------------------+------------------------------------+---------+-----------+--------
1 | dvd | dvd | Yes | (r ) Yes | Yes
2 | gh-cli | packages for the GitHub CLI | Yes | (r ) Yes | No
3 | packman | packman | Yes | (r ) Yes | Yes
4 | repo-debug-non-oss | Debug Repository (Non-OSS) | No | ---- | ----
5 | repo-debug-update | Update Repository (Debug) | No | ---- | ----
6 | repo-debug-update-non-oss | Update Repository (Debug, Non-OSS) | No | ---- | ----
7 | repo-non-oss | Non-OSS Repository | Yes | (r ) Yes | Yes
8 | repo-oss | Main Repository | Yes | (r ) Yes | Yes
9 | repo-source | Source Repository | No | ---- | ----
10 | repo-source-non-oss | Source Repository (Non-OSS) | No | ---- | ----
11 | repo-update | Main Update Repository | Yes | (r ) Yes | Yes
12 | repo-update-non-oss | Update Repository (Non-Oss) | Yes | (r ) Yes | Yes
2) After
> zypper lr
Repository priorities are without effect. All enabled repositories share the same priority.
# | Alias | Name | Enabled | GPG Check | Refresh
---+---------------------------+------------------------------------+---------+-----------+--------
1 | dvd | dvd | Yes | (r ) Yes | Yes
2 | gh-cli | packages for the GitHub CLI | Yes | (r ) Yes | No
3 | packman | packman | Yes | (r ) Yes | Yes
4 | repo-debug-non-oss | Debug Repository (Non-OSS) | No | ---- | ----
5 | repo-debug-update | Update Repository (Debug) | No | ---- | ----
6 | repo-debug-update-non-oss | Update Repository (Debug, Non-OSS) | No | ---- | ----
7 | repo-non-oss | Non-OSS Repository | Yes | (r ) Yes | Yes
8 | repo-oss | Main Repository | Yes | (r ) Yes | Yes
9 | repo-source | Source Repository | No | ---- | ----
10 | repo-source-non-oss | Source Repository (Non-OSS) | No | ---- | ----
11 | repo-update | Main Update Repository | Yes | (r ) Yes | Yes
12 | repo-update-non-oss | Update Repository (Non-Oss) | Yes | (r ) Yes | Yes
This change changes to align line number to the right in output of the 'zypper lr' command. That is consistent with the output of 'zypper ls' and helps to solve the bash-completion issues.