[Dextrose] [PATCH sugar-toolkit 3/4] bundlebuilder: install mimetypes.xml and associated icon #2262
Aleksey Lim
alsroot at member.fsf.org
Sat Jan 15 12:07:18 EST 2011
From: Simon Schampijer <simon at schampijer.de>
As we do create the ActivityBundle in the config of the bundlebuilder
we can use the code from the activitybundle as well to install
the mime type.
Reviewed-By: Sascha Silbe <sascha-pgp at silbe.org>
---
src/sugar/activity/bundlebuilder.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/sugar/activity/bundlebuilder.py b/src/sugar/activity/bundlebuilder.py
index 0c37d7f..4c3b8fd 100644
--- a/src/sugar/activity/bundlebuilder.py
+++ b/src/sugar/activity/bundlebuilder.py
@@ -239,6 +239,8 @@ class Installer(object):
shutil.copy(source, dest)
+ self.config.bundle.install_mime_type(self.config.source_dir)
+
def cmd_dev(config, args):
'''Setup for development'''
--
1.7.3.4
More information about the Dextrose
mailing list