Closed tredeneo closed 3 years ago
Do you have any suggestions?
Maybe we're counting the wrong column in rpmdb.sqlite
@laurentlbm Any ideas?
The bug report states that it doesn't show the count when flatpak is installed, not that the count is incorrect.
Maybe it only shows the count for the last package manager it calculated?
I'm using the fedora toolbox to create containers and test them and they worked correctly but in the real system the RPM doesn't appear, if I install the snap it appears correctly snap and flatpak but not RPM
I will keep testing trying to find what causes this
The bug report states that it doesn't show the count when flatpak is installed, not that the count is incorrect.
Maybe it only shows the count for the last package manager it calculated?
That's not really how it works though. If the count is zero, the package manager is omitted. If not, it appends it to the packages readout.
I'm using the fedora toolbox to create containers and test them and they worked correctly but in the real system the RPM doesn't appear, if I install the snap it appears correctly snap and flatpak but not RPM
Looks to me like count_rpm()
is the culprit in this case.
I'm using the fedora toolbox to create containers and test them and they worked correctly but in the real system the RPM doesn't appear, if I install the snap it appears correctly snap and flatpak but not RPM
I will keep testing trying to find what causes this
Can you check if the file /var/lib/rpm/rpmdb.sqlite
is present?
If it is, can you run sqlite3 /var/lib/rpm/rpmdb.sqlite 'select count(*) from Installtid;'
and let us know the result?
Can you check if the file /var/lib/rpm/rpmdb.sqlite is present?
exist
If it is, can you run sqlite3 /var/lib/rpm/rpmdb.sqlite 'select count(*) from Installtid;' and let us know the result?
I run the code and not enter in rpm else if(libmacchina) (my debug tools not is working with this code then I've used print) the flatpak is ok
in the linux container works
Maybe the code should check if rpm
OR dnf
is present.
I found, I have the dpkg
package on the fedora system (I don't remember why I installed it,there's even in the repositories), it goes into dpkg doesn't get anything and ignores the else if extra::which("rpm")
for now having entered an if, the linux containers I tested doesn't have the dpkg package so they worked
I removed the dpkg
package and it worked, now I don't know if it's really a problem because it's very specific
Interesting, I also have dpkg
installed, but on my Arch machine, and since it checks for pacman
first, it didn't cause any problem... Maybe those conditions shouldn't be exclusive, just in case.
Even though it's not recommended to have all kinds of package managers installed on your system, I'll still update the code to try each one of them so we can squash this bug.
Transfering to libmacchina as that's where the issue is coming from.
Fixed with v2.1.8
Describe the bug showing flatpak but not RPM
To Reproduce
$ macchina
in the fedora distro with flatpak if I remove flatpak RPM is listed correctlyExpected behavior display rpm and flatpak like neofetch:
macchina --doctor
outputSystem Information You don't have to provide this information if you're not comfortable doing so, but it'll help us solve the issue a lot faster.