[pacman-dev] [PATCH] move db lock/unlock to the transaction functions

VMiklos vmiklos at frugalware.org
Wed Jan 25 19:03:25 EST 2006


hi

http://frugalware.org/~vmiklos/patches/libpacman-proposed/lock_move.diff

$ sudo touch /tmp/pacman.lck
$ sudo pacman -Sg
error: failed to initilize alpm library (unable to lock database)
error: library not initialized

is this normal? of course not

we should only lock the database when a transaction begins, and
we should unlock the database as soon as the transaction ends

also move the PM_LOCK define to the public header so that fronends
can print out a more usable error message (ie. like pacman2 did)

udv / greetings,
VMiklos

-- 
Developer of Frugalware Linux, to make things frugal - http://frugalware.org




More information about the pacman-dev mailing list