summaryrefslogtreecommitdiffstats
path: root/src/pacman/util.c
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2014-12-28 12:28:59 +0100
committerAllan McRae <allan@archlinux.org>2015-01-02 12:44:58 +0100
commite8a3e3d81a4aee62db24f66b71c01d8a996d41d5 (patch)
treec8955b2a295f00a33c04480473a16fef197bc62f /src/pacman/util.c
parent194dea2de10c3507608e4f826c66802671a719a8 (diff)
downloadpacman-e8a3e3d81a4aee62db24f66b71c01d8a996d41d5.tar.gz
pacman-e8a3e3d81a4aee62db24f66b71c01d8a996d41d5.tar.xz
Integrate testdb into pacman
The functionality of testdb is now available in pacman. pacman -Dk will check the local database for consistency, and pacman -Dkk will check the sync databases. Note that unlike testdb, you can not specify individual sync databases to check as sync databases act as a whole and not individually. A single database can be checked using an alternative pacman.conf file. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/pacman/util.c')
-rw-r--r--src/pacman/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index f63ac1be..8720ba11 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -105,7 +105,7 @@ int needs_root(void)
{
switch(config->op) {
case PM_OP_DATABASE:
- return 1;
+ return !config->op_q_check;
case PM_OP_UPGRADE:
case PM_OP_REMOVE:
return !config->print;