[Sugar-devel] [PATCH] bundlebuilder does not install mimetypes.xml and associated icon #2262

Simon Schampijer simon at schampijer.de
Mon Nov 22 12:42:32 EST 2010


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.
---
 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 d9dd96d..5f32477 100644
--- a/src/sugar/activity/bundlebuilder.py
+++ b/src/sugar/activity/bundlebuilder.py
@@ -274,6 +274,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.2.3



More information about the Sugar-devel mailing list