We don't need root with -Sp
commitf4ecc908eccc3ace2e40b15be837e4fa44ecf0a0
authorNagy Gabor <ngaba@bibl.u-szeged.hu>
Sat, 16 May 2009 15:59:45 +0000 (16 17:59 +0200)
committerDan McGee <dan@archlinux.org>
Tue, 2 Jun 2009 03:01:04 +0000 (1 22:01 -0500)
treece82bf945d8dd4a3105890ad3773f7fcd3ab875c
parentc520d3845113ce4dc1a473c012288da7f2a655b8
We don't need root with -Sp

FS#8905 is fixed. The front-end passes PM_TRANS_FLAG_NOLOCK to the back-end,
so it doesn't lock the database. That's why we don't need root anymore.

I reworked (and renamed) needs_transaction() accordingly. I also added
missing -Sc check there (for example, -Sci didn't print non-root error, but
pacman wanted to lock the database).

Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Signed-off-by: Dan McGee <dan@archlinux.org>
src/pacman/pacman.c
src/pacman/util.c
src/pacman/util.h