Bug 2267422 - `tldr --list` gets wrong output
Summary: `tldr --list` gets wrong output
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: tldr
Version: 39
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Lumír Balhar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-03-02 09:04 UTC by ciuzhienki
Modified: 2024-07-10 02:22 UTC (History)
3 users (show)

Fixed In Version: tldr-3.3.0-2.fc41 tldr-3.3.0-2.fc40 tldr-3.3.0-2.fc39
Clone Of:
Environment:
Last Closed: 2024-07-01 16:05:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description ciuzhienki 2024-03-02 09:04:32 UTC
Two issues were noticed in total.
1. When the system language is Chinese, tldr cache is placed under "~/.cache/tldr/pages.zh/", but `tldr --list` only searches "~/.cache/tldr/pages/".
2. `tldr --list` should returns commands separated by '\n', not a list. In "tldr.py", upstream code use `print('\n'.join(get_commands(options.platform)))` instead of `print(get_commands(options.platform))`.

Reproducible: Always

Steps to Reproduce:
1. Change system language to Chinese.
2. Run `tldr --list`.
Actual Results:  
[]

Expected Results:  
command1
command2
command3
...

Comment 1 Lumír Balhar 2024-03-04 12:37:22 UTC
Thank you for the report. The problem with `--list` has already been fixed upstream, see https://github.com/tldr-pages/tldr-python-client/pull/222

But there is no new release available after the fix. I've asked upstream about plans for the new release: https://github.com/tldr-pages/tldr-python-client/issues/237

I'm able to reproduce the problem with language-specific cache so I reported it upstream as well: https://github.com/tldr-pages/tldr-python-client/issues/238

Comment 2 Lumír Balhar 2024-04-19 12:06:37 UTC
My fix for the language-specific cache folders has been merged. Hope they'll prepare a new release soon so we can simply update in Fedora.

Comment 3 Fedora Update System 2024-07-01 15:57:49 UTC
FEDORA-2024-f142587256 (tldr-3.3.0-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-f142587256

Comment 4 Fedora Update System 2024-07-01 16:05:36 UTC
FEDORA-2024-f142587256 (tldr-3.3.0-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Fedora Update System 2024-07-01 19:46:32 UTC
FEDORA-2024-791cc5358f (tldr-3.3.0-2.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-791cc5358f

Comment 6 Fedora Update System 2024-07-01 19:46:49 UTC
FEDORA-2024-e94ef42dcb (tldr-3.3.0-2.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-e94ef42dcb

Comment 7 Fedora Update System 2024-07-02 01:33:22 UTC
FEDORA-2024-791cc5358f has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-791cc5358f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-791cc5358f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2024-07-02 02:36:26 UTC
FEDORA-2024-e94ef42dcb has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-e94ef42dcb`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-e94ef42dcb

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2024-07-10 01:54:26 UTC
FEDORA-2024-e94ef42dcb (tldr-3.3.0-2.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2024-07-10 02:22:34 UTC
FEDORA-2024-791cc5358f (tldr-3.3.0-2.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.