mirror of
https://github.com/moparisthebest/pacman
synced 2024-10-31 15:45:03 -04:00
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
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user