orospakr / vrms-arch

Virtual Richard M. Stallman for Arch Linux
BSD 3-Clause "New" or "Revised" License
123 stars 16 forks source link

Fixed an issue where having local files database would cause a crash #19

Closed Remedan closed 5 years ago

Remedan commented 6 years ago

I have a local repo with a local files database. Which means that there are the files myrepo.db and myrepo.files in /var/lib/pacman/sync. This causes register_syncdb to be called twice on myrepo. alpm throws an error the second time.

This fix makes it so register_syncdb gets called on all unique repos only once.

orospakr commented 5 years ago

Nice catch @Remedan . Apologies for not noticing this sooner! 😅