summaryrefslogtreecommitdiffstats
path: root/src/pacman/pacman.c
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2013-10-12 13:32:08 -0400
committerAllan McRae <allan@archlinux.org>2013-10-14 13:01:15 +1000
commit55ca38b4cdccc1ec57ec285f58f422f189d327b4 (patch)
treefb868547775222d6ac9815108403672b31916e12 /src/pacman/pacman.c
parent64e4f627c1ed2318bc24de8b8f680d7b3c5f993f (diff)
downloadpacman-55ca38b4cdccc1ec57ec285f58f422f189d327b4.tar.xz
rename PKG_LOCALITY_LOCAL -> PKG_LOCALITY_NATIVE
PKG_LOCALITY_LOCAL was confusing because the enum is used with -Q, so all packages are "local". Also reversed the config->op_q_locality assignment so that the locality matches the option used. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r--src/pacman/pacman.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 9c917f9d..70001269 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -512,11 +512,11 @@ static int parsearg_query(int opt)
break;
case OP_FOREIGN:
case 'm':
- config->op_q_locality |= PKG_LOCALITY_LOCAL;
+ config->op_q_locality |= PKG_LOCALITY_FOREIGN;
break;
case OP_NATIVE:
case 'n':
- config->op_q_locality |= PKG_LOCALITY_FOREIGN;
+ config->op_q_locality |= PKG_LOCALITY_NATIVE;
break;
case OP_OWNS:
case 'o':