summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormorganamilo <morganamilo@archlinux.org>2021-04-18 21:59:45 +0200
committerAllan McRae <allan@archlinux.org>2021-05-09 14:01:30 +0200
commit31c42c338b717ea6e0cae92c2279d859a882d1b3 (patch)
tree4868caa678b5b2eecbad807b4813507063462be8
parentef14c3380da0ed0e3eeba7e8b6c66294db316883 (diff)
downloadpacman-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>
-rw-r--r--src/pacman/callback.c4
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++;