summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-11-13 18:15:41 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-11-13 18:15:41 +0000
commitc62859cd5203ffc533b9758250d21cf6ce645363 (patch)
tree7d03390c633721c9c0239626e0e92ce08f5ddcee
parentd9301254ab204421968c54542ec2e50d91b42ab9 (diff)
downloaddrakx-c62859cd5203ffc533b9758250d21cf6ce645363.tar
drakx-c62859cd5203ffc533b9758250d21cf6ce645363.tar.gz
drakx-c62859cd5203ffc533b9758250d21cf6ce645363.tar.bz2
drakx-c62859cd5203ffc533b9758250d21cf6ce645363.tar.xz
drakx-c62859cd5203ffc533b9758250d21cf6ce645363.zip
indicate a sort of progression status when loading clp's
-rw-r--r--mdk-stage1/stage1.c5
1 files changed, 4 insertions, 1 deletions
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)