summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-11-10 21:09:59 +0100
committerAaron Griffin <aaron@archlinux.org>2006-11-10 21:09:59 +0100
commit734e077996d75a488e62e72da09bdd1f724c15de (patch)
tree6ba91d23b9ebc419bcf33f2a87bc5a7a22dc9fea
parentd069999cbf20551f672c7c4cd3035581ca7d8bee (diff)
downloadpacman-734e077996d75a488e62e72da09bdd1f724c15de.tar.gz
pacman-734e077996d75a488e62e72da09bdd1f724c15de.tar.xz
Skip root check on -Sp
-rw-r--r--src/pacman/pacman.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 68f6b520..c5be07d6 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -473,7 +473,8 @@ int main(int argc, char *argv[])
if(myuid > 0) {
if(config->op != PM_OP_MAIN && config->op != PM_OP_QUERY && config->op != PM_OP_DEPTEST) {
if((config->op == PM_OP_SYNC && !config->op_s_sync &&
- (config->op_s_search || config->group || config->op_q_list || config->op_q_info))
+ (config->op_s_search || config->group || config->op_q_list || config->op_q_info
+ || config->flags & PM_TRANS_FLAG_PRINTURIS))
|| (config->op == PM_OP_DEPTEST && !config->op_d_resolve)
|| (config->root != NULL)) {
/* special case: PM_OP_SYNC can be used w/ config->op_s_search by any user */