Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-10-16 16:42:25 -0400
committerDan McGee <dan@archlinux.org>2011-10-21 19:29:31 -0500
commit32327dc8c9679232ae55935615088c0696f49e86 (patch)
treec5653827b451d99231c989d52369f2c9be2013d9 /src
parent89edea326bd3d2f4d6feab441d2da961c715dbc0 (diff)
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 <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/util.c7
1 files changed, 6 insertions, 1 deletions
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));
}