exequtic / apdatifier

KDE Plasma widget that tracks updates for ArchLinux, Plasma Widgets, and Flatpak, providing notifications for new ones
https://store.kde.org/p/2135796
MIT License
90 stars 7 forks source link

Count doesn't work when News is enabled and there are no new news #7

Closed luisbocanegra closed 7 months ago

luisbocanegra commented 7 months ago

Steps to reproduce:

  1. Enable Arch Linux News
  2. Check for updates from the widget
  3. Status bar shows exit code 1 and stops there without checking for Arch/AUR news
paru -Pw
no new news
1 ❎ 1.316s 17:27 ~

Screenshot_20240330_173059

exequtic commented 7 months ago

Strange. For me, paru -Pw always displays the latest news. I can't reproduce the output of "no new news".

~> paru -Pw
2024-03-29 The xz package has been backdoored
TL;DR: Upgrade your systems and container images now!
....
luisbocanegra commented 7 months ago

I think is because I have NewsOnUpgrade option enabled in paru. News are shown when upgrading and discarded after. Maybe this is saved somewhere and that's probably why -Pw shows no news?

exequtic commented 7 months ago

I've changed the function, it should work now. Give it a try.

luisbocanegra commented 7 months ago

It works now. Thank you