diff options
author | Simon Gomizelj <simongmzlj@gmail.com> | 2012-12-13 10:06:41 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-01-29 13:36:58 +1000 |
commit | cb43bd8dfbee0396ff6f56c20690995adfcf3b99 (patch) | |
tree | 0a728b69281137a92b29ae9f216f6a0508ecbd03 /src/pacman/pacman.c | |
parent | 8624eddb31dc360312b50b5435f6688bec4543c5 (diff) | |
download | pacman-cb43bd8dfbee0396ff6f56c20690995adfcf3b99.tar.xz |
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 <simongmzlj@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r-- | src/pacman/pacman.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |