Comment 1 for bug 1003789

Revision history for this message
bcbc (bcbc) wrote : Re: wubi.exe not starting

Here is the affected code (iso_path = "G:\Diablo 3.iso"):
    def get_iso_file_names(self, iso_path):
        iso_path = abspath(iso_path)
        if iso_path in self.cache:
            return self.cache[iso_path]
        else:
            self.cache[iso_path] = None
        command = [self.info.iso_extractor,'l',iso_path]
        try:
            output = run_command(command)
        except Exception, err:
            log.exception(err)
            log.debug('command >>%s' % ' '.join(command))
            output = None
        if not output: return []

        lines = output.split(os.linesep)
        start = None
        new_lines = []
        for line in lines:
            if line.startswith('---'):
                if start is None:
                    start = True
                else:
                    break
            elif start:
                new_lines.append(line)
        if not new_lines:
            return []
        lines = new_lines

        file_info = [line.split() for line in lines]
        file_names = [os.path.normpath(x[-1]) for x in file_info] <====LINE 542