]> wimlib.net Git - wimlib/blobdiff - src/update_image.c
Delay xml_update_image_info() until write
[wimlib] / src / update_image.c
index 66e5ed8d4157a3c23300cbcbafb043324060c71f..15458a12b51593984d00637d701abad8d13fe377 100644 (file)
@@ -64,7 +64,6 @@
 #include "wimlib/metadata.h"
 #include "wimlib/paths.h"
 #include "wimlib/progress.h"
-#include "wimlib/xml.h"
 
 /* Saved specification of a "primitive" update operation that was performed.  */
 struct update_primitive {
@@ -1435,11 +1434,6 @@ wimlib_update_image(WIMStruct *wim,
 
        mark_image_dirty(imd);
 
-       /* Statistics about the WIM image, such as the numbers of files and
-        * directories, may have changed.  Call xml_update_image_info() to
-        * recalculate these statistics. */
-       xml_update_image_info(wim, image);
-
        for (size_t i = 0; i < num_cmds; i++)
                if (cmds_copy[i].op == WIMLIB_UPDATE_OP_ADD &&
                    cmds_copy[i].add.add_flags & WIMLIB_ADD_FLAG_RPFIX)