From 31c42c338b717ea6e0cae92c2279d859a882d1b3 Mon Sep 17 00:00:00 2001 From: morganamilo Date: Sun, 18 Apr 2021 20:59:45 +0100 Subject: Match initial download message with progress message When initially downloading a package, pacman will display a message like: wine-6.6-1-x86_64.pkg.tar.zst downloading... Then when the download progresses the message will change to: wine-6.6-1-x86_64.pkg.tar.zst So instead lets match the progress message so there's no sudden change. Signed-off-by: Allan McRae --- src/pacman/callback.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pacman/callback.c b/src/pacman/callback.c index ae7e1bed..98d8c5cf 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -878,9 +878,9 @@ static void draw_pacman_progress_bar(struct pacman_progress_bar *bar) static void dload_init_event(const char *filename, alpm_download_event_init_t *data) { (void)data; + char *cleaned_filename = clean_filename(filename); if(!dload_progressbar_enabled()) { - char *cleaned_filename = clean_filename(filename); printf(_(" %s downloading...\n"), cleaned_filename); free(cleaned_filename); return; @@ -894,7 +894,7 @@ static void dload_init_event(const char *filename, alpm_download_event_init_t *d multibar_ui.active_downloads = alpm_list_add(multibar_ui.active_downloads, bar); console_cursor_move_end(); - printf(_(" %s downloading...\n"), filename); + printf(" %s\n", cleaned_filename); multibar_ui.cursor_lineno++; multibar_ui.active_downloads_num++; -- cgit v1.2.3-24-g4f1b