From cb43bd8dfbee0396ff6f56c20690995adfcf3b99 Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Thu, 13 Dec 2012 10:06:41 -0500 Subject: Consolidate --foreign/--native filtering Also fix a small bug where pacman won't check if the sync dbs are first downloaded when invoked with --native (it should). Signed-off-by: Simon Gomizelj Signed-off-by: Allan McRae --- src/pacman/pacman.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pacman/pacman.c') diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 8448d6b4..dad12c5c 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -463,8 +463,8 @@ static int parsearg_query(int opt) case 'i': (config->op_q_info)++; break; case 'k': (config->op_q_check)++; break; case 'l': config->op_q_list = 1; break; - case 'm': config->op_q_foreign = 1; break; - case 'n': config->op_q_native = 1; break; + case 'm': config->op_q_locality |= PKG_LOCALITY_LOCAL; break; + case 'n': config->op_q_locality |= PKG_LOCALITY_FOREIGN; break; case 'o': config->op_q_owns = 1; break; case 'p': config->op_q_isfile = 1; break; case 'q': config->quiet = 1; break; -- cgit v1.2.3