From 2d9e7dc2bcb71771b70d379f77212f0ce4a622f4 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Tue, 15 Oct 2013 17:28:49 +1000 Subject: Fix detection of joint --native and --foreign usage Signed-off-by: Allan McRae --- src/pacman/pacman.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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"); } -- cgit v1.2.3-70-g09d2