1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 08:18:51 -05:00

Fix detection of joint --native and --foreign usage

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2013-10-15 17:28:49 +10:00
parent 70b2c5f5ef
commit 2d9e7dc2bc

View File

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