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/conf.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/pacman/conf.h') diff --git a/src/pacman/conf.h b/src/pacman/conf.h index 06d2fd5a..408b5913 100644 --- a/src/pacman/conf.h +++ b/src/pacman/conf.h @@ -50,8 +50,6 @@ typedef struct __config_t { unsigned short op_q_isfile; unsigned short op_q_info; unsigned short op_q_list; - unsigned short op_q_foreign; - unsigned short op_q_native; unsigned short op_q_unrequired; unsigned short op_q_deps; unsigned short op_q_explicit; @@ -60,6 +58,7 @@ typedef struct __config_t { unsigned short op_q_changelog; unsigned short op_q_upgrade; unsigned short op_q_check; + unsigned short op_q_locality; unsigned short op_s_clean; unsigned short op_s_downloadonly; @@ -137,6 +136,14 @@ enum { PM_CLEAN_KEEPCUR = (1 << 1) }; +/** package locality */ +enum { + PKG_LOCALITY_UNSET = 0, + PKG_LOCALITY_LOCAL = (1 << 0), + PKG_LOCALITY_FOREIGN = (1 << 1) +}; + + /* global config variable */ extern config_t *config; -- cgit v1.2.3-24-g4f1b