From c62859cd5203ffc533b9758250d21cf6ce645363 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 13 Nov 2003 18:15:41 +0000 Subject: indicate a sort of progression status when loading clp's --- mdk-stage1/stage1.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mdk-stage1') diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c index ae92d162f..93935439a 100644 --- a/mdk-stage1/stage1.c +++ b/mdk-stage1/stage1.c @@ -391,6 +391,7 @@ int mandrake_move_pre(void) static enum return_type handle_clp(char* clp, char* live, char* location_live, char* location_mount, int* is_symlink, char* clp_tmpfs) { + static int count = 0; if (IS_LIVE || access(clp, R_OK)) { log_message("no %s found (or disabled), trying to fallback on plain tree", clp); if (!access(live, R_OK)) { @@ -406,7 +407,9 @@ static enum return_type handle_clp(char* clp, char* live, char* location_live, c if (clp_tmpfs) { int ret; - init_progression("Loading...", file_size(clp)); + char buf[5000]; + sprintf(buf, "Loading (part %d)...", ++count); + init_progression(buf, file_size(clp)); ret = copy_file(clp, clp_tmpfs, update_progression); end_progression(); if (ret != RETURN_OK) -- cgit v1.2.1