Comment 8 for bug 1070682

Revision history for this message
bcbc (bcbc) wrote :

Howard, I see you removed the space from Ubuntu Studio so it can find the image files, but that's also checked against the .disk/info file on the ISO and it has to match. It's "Ubuntu Studio" in the .disk/info.

In my own version of wubi.exe, having no control over the ISO, I modified Wubi to strip out spaces before checking (I used UbuntuStudio as the name when I did it) but in yours you used a hyphen (Ubuntu-studio).

My workaround was like this:
=== modified file 'src/wubi/backends/common/distro.py'
--- src/wubi/backends/common/distro.py 2012-04-24 15:57:38 +0000
+++ src/wubi/backends/common/distro.py 2012-11-02 09:04:33 +0000
@@ -163,10 +163,12 @@
             log.debug('could not get info %s' % info)
             return False
         name, version, subversion, arch = info # used in backend as well
- if self.name and name != self.name:
- log.debug('wrong name: %s != %s' % (name, self.name))
+
+ # strip out space from distro name - takes care of 'Ubuntu Studio'
+ if self.name and name.replace(' ','') != self.name:
+ log.debug('wrong name: %s != %s' % (name.replace(' ',''), self.name))
             return False

But that's not a great solution. The better solution would be to change the .disk/info file to match unless it's required.