Revision 486ea6e0
b/image_creator/os_type/__init__.py | ||
---|---|---|
59 | 59 |
meta["description"] = self.g.inspect_get_product_name(self.root) |
60 | 60 |
|
61 | 61 |
return meta |
62 |
|
|
62 |
|
|
63 | 63 |
def data_cleanup(self): |
64 | 64 |
raise NotImplementedError |
65 | 65 |
|
b/image_creator/os_type/ubuntu.py | ||
---|---|---|
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 : |
Also available in: Unified diff