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>
This commit is contained in:
parent
89edea326b
commit
32327dc8c9
1 changed files with 6 additions and 1 deletions
|
@ -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, */
|
/* a row consists of the package name, */
|
||||||
if(target->install) {
|
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 {
|
} else {
|
||||||
pm_asprintf(&str, "%s", alpm_pkg_get_name(target->remove));
|
pm_asprintf(&str, "%s", alpm_pkg_get_name(target->remove));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue