oshazard / apacman

ArchLinux User Repository (AUR) helper and pacman wrapper
https://aur.archlinux.org/packages/apacman/
GNU General Public License v3.0
70 stars 11 forks source link

gendb doesn't find all packages after pacman DB rebuild #82

Open rbellamy opened 7 years ago

rbellamy commented 7 years ago

Due to a drive failure my original pacman DB (/var/lib/pacman) was lost. I was able to recover my cache (/var/cache/pacman), and needed to rebuild my pacman DB. My package cache had never been "cleaned" so it should have every package I've ever installed, whether via pacman or apacman.

However, when I ran the gendb process of apacman it picked up a very small subset of packages. Before the data loss, apacman was managing 127 packages, and after it's now only recognizing 35 packages from AUR.

I'm looking for a way to run gendb so that it correctly recognizes all packages in my cache that have originated from the AUR.

Two concrete examples are intellij-idea-ultimate-edition and google-chrome. Both installations have packages in the cache, and both were not recognized as having been installed and managed via apacman when rebuilding my DB. In order to get them recognized I had to force install them.