FrostyX / tracer

Tracer finds outdated running applications in your system
GNU General Public License v2.0
82 stars 24 forks source link

More reliable check if /usr/lib/sysimage/dnf/ database should be used #200

Closed FrostyX closed 1 year ago

FrostyX commented 1 year ago

Fix #197

FrostyX commented 1 year ago

@Conan-Kudo, can you please take a look if this breaks your SUSE use-case (https://github.com/FrostyX/tracer/commit/a70893a) or if it works just fine?

Without this patch, tracer finds nothing on F38.

FrostyX commented 1 year ago

It does, but on my system, the /usr/lib/sysimage/dnf directory exists but it is empty (i.e. /usr/lib/sysimage/dnf/history.sqlite does not exist).

So I think if we want to use /usr/lib/sysimage/dnf/history.sqlite we should check it directly.

Conan-Kudo commented 1 year ago

Ah, I wonder why it exists on Fedora... But sure, makes sense.

FrostyX commented 1 year ago

Thank you for the review @Conan-Kudo