From 32327dc8c9679232ae55935615088c0696f49e86 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 16 Oct 2011 16:42:25 -0400 Subject: pacman: show repo name in download prompt This only applies to the VerbosePkgLists option. Lessens the deficiencies created by earlier work to separate download records by repository. Satisfies FS#26334. Signed-off-by: Dave Reisner Signed-off-by: Dan McGee --- src/pacman/util.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/pacman') diff --git a/src/pacman/util.c b/src/pacman/util.c index 3f52500d..efd8563d 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -785,7 +785,12 @@ static alpm_list_t *create_verbose_row(pm_target_t *target, int dl_size) /* a row consists of the package name, */ if(target->install) { - pm_asprintf(&str, "%s", alpm_pkg_get_name(target->install)); + const alpm_db_t *db = alpm_pkg_get_db(target->install); + if(db) { + pm_asprintf(&str, "%s/%s", alpm_db_get_name(db), alpm_pkg_get_name(target->install)); + } else { + pm_asprintf(&str, "%s", alpm_pkg_get_name(target->install)); + } } else { pm_asprintf(&str, "%s", alpm_pkg_get_name(target->remove)); } -- cgit v1.2.3-70-g09d2