summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-10-15 09:28:49 +0200
committerAllan McRae <allan@archlinux.org>2013-10-31 07:20:02 +0100
commit2d9e7dc2bcb71771b70d379f77212f0ce4a622f4 (patch)
tree70f3bdb47213d384db21afdffce4d84ec3843901 /src
parent70b2c5f5ef7e81f61db9fada63c80514c3b163a5 (diff)
downloadpacman-2d9e7dc2bcb71771b70d379f77212f0ce4a622f4.tar.gz
pacman-2d9e7dc2bcb71771b70d379f77212f0ce4a622f4.tar.xz
Fix detection of joint --native and --foreign usage
Signed-off-by: Allan McRae <allan@archlinux.org>
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");
}