summaryrefslogtreecommitdiffstats
path: root/src/pacman/query.c
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2008-01-10 15:59:43 +0100
committerDan McGee <dan@archlinux.org>2008-01-11 05:58:19 +0100
commitaec7c13648179e6d77d1fea9233e35fb9f9d1e05 (patch)
tree93bebd083f9a8d333a43cb8baf1e4dce3514b39a /src/pacman/query.c
parentabd14fdac0c6ab834b0bbeb423e7a8f5a3978b87 (diff)
downloadpacman-aec7c13648179e6d77d1fea9233e35fb9f9d1e05.tar.gz
pacman-aec7c13648179e6d77d1fea9233e35fb9f9d1e05.tar.xz
Rename -t --orphans to -t --unrequired (FS#9144).
It turns out the orphan name was misleading. Real orphans are packages installed as dependency no longer required by any others (-Qtd). The -t option only shows package not required by any others, so --unrequired describes it better. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/query.c')
-rw-r--r--src/pacman/query.c6
1 files changed, 3 insertions, 3 deletions
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);