summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 f4856924..f22f40f3 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -600,7 +600,8 @@ static void checkargs_query(void)
}
invalid_opt(config->op_q_deps && config->op_q_explicit, "--deps", "--explicit");
- invalid_opt(config->op_q_locality & (PKG_LOCALITY_NATIVE | PKG_LOCALITY_FOREIGN),
+ invalid_opt((config->op_q_locality & PKG_LOCALITY_NATIVE) &&
+ (config->op_q_locality & PKG_LOCALITY_FOREIGN),
"--native", "--foreign");
}