Statistics
| Branch: | Tag: | Revision:

root / image_creator / os_type / ubuntu.py @ 9297c398

History | View | Annotate | Download (530 Bytes)

1
from image_creator.os_type.linux import Linux
2

    
3

    
4
class Ubuntu(Linux):
5
    def get_metadata(self):
6
        meta = super(Ubuntu, self).get_metadata()
7
        apps = self.g.inspect_list_applications(self.root)
8
        for app in apps:
9
            if app['app_name'] == 'kubuntu-desktop':
10
                meta['OS'] = 'kubuntu'
11
                meta['description'] = \
12
                            meta['description'].replace('Ubuntu', 'Kubuntu')
13
                break
14
        return meta
15

    
16
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :