[pacman-dev] Db pkgcache invalidation
I'm the current maintainer of PackageKit alpm backend and I need to invalidate localdb pkgcache when user run pacman by hand and packagekitd is running. I already added an inotify watch on the localdb directory but now I need to refresh the backend libalpm state. Is there any existing way to achieve this ? If not, is the behavior I need could be achieved by unsetting the DB_STATUS_PKGCACHE ?
On 15/03/15 08:08, Fabien Bourigault wrote:
I'm the current maintainer of PackageKit alpm backend and I need to invalidate localdb pkgcache when user run pacman by hand and packagekitd is running. I already added an inotify watch on the localdb directory but now I need to refresh the backend libalpm state.
Is there any existing way to achieve this ? If not, is the behavior I need could be achieved by unsetting the DB_STATUS_PKGCACHE ?
Doesn't the lock file created by alpm_initialize prevent this? If you have released the transaction to allow pacman to be run again, you will just need to call alpm_initialize again. Or am I missing something? Allan
participants (2)
-
Allan McRae
-
Fabien Bourigault