[pacman-dev] [PATCH] Fix detection of joint --native and --foreign usage
15 Oct
2013
15 Oct
'13
7:29 a.m.
Signed-off-by: Allan McRae <allan@archlinux.org> --- src/pacman/pacman.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index f485692..f22f40f 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"); } -- 1.8.4
4090
Age (days ago)
4090
Last active (days ago)
0 comments
1 participants
participants (1)
-
Allan McRae