i have laptop without battery backup. and if power fails then several times ur database is locked during update . deleting var/lib/pacman/db.lck manually is not permanant solution.

i want to know how we can automatically unlock database if this db.lck file is created. how to make auto script to delete this file.
why antergos cant make something to autodelete db.lck if this file is created ??