* Matus UHLAR - fantomas [Sun Oct 10, 2021 at 07:34:44PM +0200]:

> kthresher does not remove old kernel, --dry-run fails with:
> 
> # kthresher --dry-run
> INFO: Attempting to read /etc/kthresher.conf.
> INFO: Options found: ['include'].
> INFO: Valid setting found "include"
> INFO:   include = /etc/kthresher.d/*.conf
> INFO: Options: {'dry_run': True, 'headers': False, 'keep': 1, 'purge': False, 
> 'verbose': False, 'include': '/etc/kthresher.d/*.conf'}
> INFO: ----- DRY RUN -----
> INFO: Running kernel is linux-image-5.10.0-9-amd64 v[5.10.70-1]
> Traceback (most recent call last):
>  File "/usr/bin/kthresher", line 33, in <module>
>    sys.exit(load_entry_point('kthresher==1.4.1', 'console_scripts', 
> 'kthresher')())
>  File "/usr/lib/python3/dist-packages/kthresher.py", line 481, in main
>    kthreshing(purge=False, headers=options["headers"], keep=options["keep"])
>  File "/usr/lib/python3/dist-packages/kthresher.py", line 275, in kthreshing
>    section = pkg.candidate.section or ''
> AttributeError: 'NoneType' object has no attribute 'section'
> 
> This is apparently caused by installed package (minecraft-launcher) that has
> no Section: defined.
> 
> While I agree that the package probably should have Section: header,
> I believe kthresher should not crash in such case.

I can confirm/verify this bug and can offer the maintainer of
kthresher a system to reproduce this behavior.

regards
-mika-

Attachment: signature.asc
Description: PGP signature

Reply via email to