Bug 2402655

Summary: fontquery-diff raise a KeyError Exception on LXDE
Product: [Fedora] Fedora Reporter: Akira TAGOH <tagoh>
Component: python-fontqueryAssignee: Akira TAGOH <tagoh>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 43CC: tagoh
Target Milestone: ---Flags: tagoh: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: python-fontquery-1.28-1.fc44 python-fontquery-1.28-1.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-10-09 08:06:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Akira TAGOH 2025-10-09 06:24:38 UTC
Traceback (most recent call last):
  File "/usr/bin/fontquery-client", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/usr/lib/python3.14/site-packages/fontquery/client.py", line 310, in main
    print(fccmd[args.mode](args))
          ~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.14/site-packages/fontquery/client.py", line 135, in dump
    repo = PackageRepo(cache, pkgname, data[1], get_version(os_release))
                                                ~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/fontquery/client.py", line 77, in get_version
    if os_release['VARIANT_ID'] == 'eln' or\
       ~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'VARIANT_ID'


Reproducible: Always

Steps to Reproduce:
1.try fontquery-diff on LXDE
2.
3.
Actual Results:
Exception like the above

Expected Results:
No exceptions

Additional Information:
Apparently /etc/os-release on LXDE doesn't have VARIANT_ID which may be optional (https://www.freedesktop.org/software/systemd/man/latest/os-release.html#VARIANT_ID= )

Comment 1 Fedora Update System 2025-10-09 07:50:49 UTC
FEDORA-2025-3aa4a4e488 (python-fontquery-1.28-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-3aa4a4e488

Comment 2 Fedora Update System 2025-10-09 07:58:13 UTC
FEDORA-2025-4ed5d7b627 (python-fontquery-1.28-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-4ed5d7b627

Comment 3 Fedora Update System 2025-10-09 08:06:35 UTC
FEDORA-2025-3aa4a4e488 (python-fontquery-1.28-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2025-10-10 01:25:50 UTC
FEDORA-2025-4ed5d7b627 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-4ed5d7b627`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-4ed5d7b627

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

Comment 5 Fedora Update System 2025-10-25 21:04:31 UTC
FEDORA-2025-4ed5d7b627 (python-fontquery-1.28-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.