diff options
Diffstat (limited to 'src/pacman/util.c')
-rw-r--r-- | src/pacman/util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c index 5099237e..0cae6d7c 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -80,6 +80,8 @@ int trans_release(void) int needs_root(void) { switch(config->op) { + case PM_OP_DATABASE: + return(1); case PM_OP_UPGRADE: case PM_OP_REMOVE: return(!config->print); |