Ah, you're right. I didn't check that - all I saw was the error log when I tested it that showed it as "Ubuntu Studio". So I took a look at the code, and this is the reason why (it replaces the '-' with ' ' in the name):
def parse_isoinfo(self, info):
'''
Parses the file within the ISO
that contains metadata on the iso
e.g. .disk/info in Ubuntu
Ubuntu 9.04 "Jaunty Jackalope" - Alpha i386 (20090106)
Ubuntu 9.04 "Jaunty Jackalope" - Alpha i386 (20090106.1)
Ubuntu Split Name 9.04.1 "Jaunty Jackalope" - Final Release i386 (20090106.2)
'''
log.debug(" parsing info from str=%s" % info)
if not info:
return
info = disk_info_re.match(info)
name = info.group('name').replace('-', ' ')
version = info.group('version')
subversion = info.group('subversion')
arch = info.group('arch')
log.debug(" parsed info=%s" % info.groupdict())
return name, version, subversion, arch
Ah, you're right. I didn't check that - all I saw was the error log when I tested it that showed it as "Ubuntu Studio". So I took a look at the code, and this is the reason why (it replaces the '-' with ' ' in the name):
def parse_isoinfo(self, info): re.match( info) 'name') .replace( '-', ' ') 'version' ) 'subversion' )
'''
Parses the file within the ISO
that contains metadata on the iso
e.g. .disk/info in Ubuntu
Ubuntu 9.04 "Jaunty Jackalope" - Alpha i386 (20090106)
Ubuntu 9.04 "Jaunty Jackalope" - Alpha i386 (20090106.1)
Ubuntu Split Name 9.04.1 "Jaunty Jackalope" - Final Release i386 (20090106.2)
'''
log.debug(" parsing info from str=%s" % info)
if not info:
return
info = disk_info_
name = info.group(
version = info.group(
subversion = info.group(
arch = info.group('arch')
log.debug(" parsed info=%s" % info.groupdict())
return name, version, subversion, arch