Commit 4aa7c45c authored by Thomas Schmitt's avatar Thomas Schmitt

Issueing messages with -clone and -cp_clone

parent 79bf6a4a
......@@ -1408,6 +1408,7 @@ int Xorriso_cannot_clone(struct XorrisO *xorriso, char *eff_origin,
}
/* @param flag bit0= for iso_tree_clone() : merge directories
bit1= do not issue NOTE message
*/
int Xorriso_clone_tree(struct XorrisO *xorriso, void *boss_iter,
char *origin, char *dest, int flag)
......@@ -1488,6 +1489,14 @@ int Xorriso_clone_tree(struct XorrisO *xorriso, void *boss_iter,
return(0);
}
Xorriso_set_change_pending(xorriso, 0);
if(!(flag & 2)) {
strcpy(xorriso->info_text, "Cloned in ISO image: ");
Text_shellsafe(eff_origin, xorriso->info_text, 1);
strcat(xorriso->info_text, " to ");
Text_shellsafe(eff_dest, xorriso->info_text, 1);
strcat(xorriso->info_text, "\n");
Xorriso_info(xorriso, 0);
}
return(1);
}
......
......@@ -1969,12 +1969,6 @@ nondir_exists:;
ret= Xorriso_clone_tree(xorriso, NULL, eff_origin, eff_dest, 1);
if(ret <= 0)
goto problem_handler;
sprintf(xorriso->info_text, "Cloned in ISO image: ");
Text_shellsafe(eff_origin, xorriso->info_text, 1);
strcat(xorriso->info_text, " to ");
Text_shellsafe(eff_dest, xorriso->info_text, 1);
strcat(xorriso->info_text, "\n");
Xorriso_info(xorriso, 0);
}
continue; /* regular bottom of loop */
......
#define Xorriso_timestamP "2011.02.19.112541"
#define Xorriso_timestamP "2011.02.22.073504"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment