index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Chantry Xavier <shiningxc@gmail.com> | 2008-01-10 15:59:43 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-01-10 22:58:19 -0600 |
commit | aec7c13648179e6d77d1fea9233e35fb9f9d1e05 (patch) | |
tree | 93bebd083f9a8d333a43cb8baf1e4dce3514b39a /src/pacman/query.c | |
parent | abd14fdac0c6ab834b0bbeb423e7a8f5a3978b87 (diff) |
-rw-r--r-- | src/pacman/query.c | 6 |
diff --git a/src/pacman/query.c b/src/pacman/query.c index d0f1e96a..fd2f7927 100644 --- a/src/pacman/query.c +++ b/src/pacman/query.c @@ -263,7 +263,7 @@ static int is_foreign(pmpkg_t *pkg) return(0); } -static int is_orphan(pmpkg_t *pkg) +static int is_unrequired(pmpkg_t *pkg) { alpm_list_t *requiredby = alpm_pkg_compute_requiredby(pkg); if(requiredby == NULL) { @@ -289,8 +289,8 @@ static int filter(pmpkg_t *pkg) if(config->op_q_foreign && !is_foreign(pkg)) { return(0); } - /* check if this pkg is orphaned */ - if(config->op_q_orphans && !is_orphan(pkg)) { + /* check if this pkg is unrequired */ + if(config->op_q_unrequired && !is_unrequired(pkg)) { return(0); } return(1); |