From fc35b16fd48fd4c6b89826ebe268425600e76f34 Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Fri, 16 Nov 2012 01:26:44 -0500 Subject: pacman: add -n/--native filter to -Q Signed-off-by: Simon Gomizelj Signed-off-by: Allan McRae --- src/pacman/query.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/pacman/query.c') diff --git a/src/pacman/query.c b/src/pacman/query.c index 398adac4..2736672c 100644 --- a/src/pacman/query.c +++ b/src/pacman/query.c @@ -380,6 +380,10 @@ static int filter(alpm_pkg_t *pkg) alpm_pkg_get_reason(pkg) != ALPM_PKG_REASON_DEPEND) { return 0; } + /* check if this pkg is in a sync DB */ + if(config->op_q_native && is_foreign(pkg)) { + return 0; + } /* check if this pkg isn't in a sync DB */ if(config->op_q_foreign && !is_foreign(pkg)) { return 0; -- cgit v1.2.3-24-g4f1b