diff --git a/image_creator/os_type/__init__.py b/image_creator/os_type/__init__.py index 05d6ffc3e05c15e515e47b8e4ab191b3f3573f98..358a43f487cfcc17e2a341a23c826a1f95652f5f 100644 --- a/image_creator/os_type/__init__.py +++ b/image_creator/os_type/__init__.py @@ -59,7 +59,7 @@ class OSBase(object): meta["description"] = self.g.inspect_get_product_name(self.root) return meta - + def data_cleanup(self): raise NotImplementedError diff --git a/image_creator/os_type/ubuntu.py b/image_creator/os_type/ubuntu.py new file mode 100644 index 0000000000000000000000000000000000000000..35466480d27a2ee809a554e17287b889bb7c60e7 --- /dev/null +++ b/image_creator/os_type/ubuntu.py @@ -0,0 +1,16 @@ +from image_creator.os_type.linux import Linux + + +class Ubuntu(Linux): + def get_metadata(self): + meta = super(Ubuntu, self).get_metadata() + apps = self.g.inspect_list_applications(self.root) + for app in apps: + if app['app_name'] == 'kubuntu-desktop': + meta['OS'] = 'kubuntu' + meta['description'] = \ + meta['description'].replace('Ubuntu', 'Kubuntu') + break + return meta + +# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :