Comment 2 for bug 341640

Revision history for this message
Agostino Russo (ago) wrote :

I believe that the operation will complete, but it may take some time and I cannot display a progress bar when compact runs (it's a console exe).

It might be unnecessary though to compact all the drive, I think it is worth tying to limit the compact scope:

=== modified file 'src/wubi/backends/win32/backend.py' (properties changed: -x to +x)
--- src/wubi/backends/win32/backend.py 2009-03-03 01:41:09 +0000
+++ src/wubi/backends/win32/backend.py 2009-03-12 11:28:06 +0000
@@ -95,8 +95,8 @@
         self.info.icon = join_path(self.info.target_dir, self.info.distro.name + '.ico')

     def uncompress_files(self, associated_task):
- command1 = ['compact', join_path(self.info.target_dir), '/U', '/S', '/A', '/F']
- command2 = ['compact', join_path(self.info.target_dir,'*.*'), '/U', '/S', '/A', '/F']
+ command1 = ['compact', join_path(self.info.install_boot_dir), '/U', '/S', '/A', '/F']
+ command2 = ['compact', join_path(self.info.install_boot_dir,'*.*'), '/U', '/S', '/A', '/F']
         for command in [command1,command2]:
             log.debug(" ".join(command))
             try: