summaryrefslogtreecommitdiffstats
path: root/src/pacman/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/util.c')
-rw-r--r--src/pacman/util.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index 1a74c9ea..8c4aeab8 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -609,6 +609,15 @@ void display_synctargets(const alpm_list_t *syncpkgs)
alpm_list_free(rpkglist);
}
+void display_optdepends(pmpkg_t *pkg)
+{
+ alpm_list_t *optdeps = alpm_pkg_get_optdepends(pkg);
+ if(optdeps) {
+ printf(_("Optional dependencies for %s\n"), alpm_pkg_get_name(pkg));
+ list_display_linebreak(" ", optdeps);
+ }
+}
+
/* presents a prompt and gets a Y/N answer */
int yesno(short preset, char *fmt, ...)
{