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"); }