[Bugs] #2262 UNSP: bundlebuilder doesn't install mimetypes.xml
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Fri Nov 5 07:31:56 EDT 2010
#2262: bundlebuilder doesn't install mimetypes.xml
------------------------------------------+---------------------------------
Reporter: sascha_silbe | Owner: erikos
Type: defect | Status: reopened
Priority: Unspecified by Maintainer | Milestone: 0.90
Component: sugar-toolkit | Version: 0.84.x
Severity: Blocker | Resolution:
Keywords: | Status_field: New
Distribution: | Seeta_dev:
------------------------------------------+---------------------------------
Comment(by erikos):
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.
Works fine here.
{{{
diff --git a/src/sugar/activity/bundlebuilder.py
b/src/sugar/activity/bundlebuilder.py
index fc8ebc8..dd7c849 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'''
}}}
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/2262#comment:5>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list