diff options
author | morganamilo <morganamilo@archlinux.org> | 2021-04-18 21:59:45 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2021-05-09 14:01:30 +0200 |
commit | 31c42c338b717ea6e0cae92c2279d859a882d1b3 (patch) | |
tree | 4868caa678b5b2eecbad807b4813507063462be8 /src | |
parent | ef14c3380da0ed0e3eeba7e8b6c66294db316883 (diff) | |
download | pacman-31c42c338b717ea6e0cae92c2279d859a882d1b3.tar.gz pacman-31c42c338b717ea6e0cae92c2279d859a882d1b3.tar.xz |
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 <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/callback.c | 4 |
1 files 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++; |