summaryrefslogtreecommitdiff
path: root/src/pacman/sync.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-10-07 21:52:09 -0500
committerDan McGee <dan@archlinux.org>2010-03-23 22:24:14 -0500
commitcdbb90aceb288034dbf4f228fc4c49da1e2ed0c0 (patch)
tree4762094260856cb5ed34f72adbba8ae8eb90f513 /src/pacman/sync.c
parentad4efa539de1e8e9e51baee82efeafde9fb24380 (diff)
Show 'Required By' in -Sii output
Just as we do in -Qi, we can compute required by information for sync database packages. The behavior seems sane; for a given package, the -Sii required by will show all packages in *any* sync database that require it. Implements FS#16244. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/sync.c')
-rw-r--r--src/pacman/sync.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index 3b4adaaa..1abb98fa 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -453,7 +453,7 @@ static int sync_info(alpm_list_t *syncs, alpm_list_t *targets)
pmpkg_t *pkg = alpm_list_getdata(k);
if(strcmp(alpm_pkg_get_name(pkg), pkgstr) == 0) {
- dump_pkg_sync(pkg, alpm_db_get_name(db));
+ dump_pkg_sync(pkg, alpm_db_get_name(db), config->op_s_info);
foundpkg = 1;
break;
}
@@ -474,7 +474,7 @@ static int sync_info(alpm_list_t *syncs, alpm_list_t *targets)
pmpkg_t *pkg = alpm_list_getdata(k);
if(strcmp(alpm_pkg_get_name(pkg), pkgstr) == 0) {
- dump_pkg_sync(pkg, alpm_db_get_name(db));
+ dump_pkg_sync(pkg, alpm_db_get_name(db), config->op_s_info);
foundpkg = 1;
break;
}
@@ -492,7 +492,7 @@ static int sync_info(alpm_list_t *syncs, alpm_list_t *targets)
pmdb_t *db = alpm_list_getdata(i);
for(j = alpm_db_get_pkgcache(db); j; j = alpm_list_next(j)) {
- dump_pkg_sync(alpm_list_getdata(j), alpm_db_get_name(db));
+ dump_pkg_sync(alpm_list_getdata(j), alpm_db_get_name(db), config->op_s_info);
}
}
}