#5815 BLOC Update.: Installing bundles fails if the web server doesn't know about xo mime type

Zarro Boogs per Child bugtracker at laptop.org
Sat Jan 12 11:33:37 EST 2008


#5815: Installing bundles fails if the web server doesn't know about xo mime type
------------------------------+---------------------------------------------
  Reporter:  bernie           |       Owner:  erikos  
      Type:  defect           |      Status:  new     
  Priority:  blocker          |   Milestone:  Update.2
 Component:  browse-activity  |     Version:          
Resolution:                   |    Keywords:  relnote 
  Verified:  0                |    Blocking:          
 Blockedby:                   |  
------------------------------+---------------------------------------------

Comment(by tomeu):

 In this case, the problem seems to be that we are not running update-mime-
 database after installing sugar, so xdgmime doesn't know about sugar.xml.

 Adding something like this to the sugar spec should do it:

 {{{
 %post
 if (update-mime-database -v &> /dev/null); then
   update-mime-database "%{_datadir}/mime" > /dev/null
 fi
 }}}

 {{{
 %postun
 if (update-mime-database -v &> /dev/null); then
   update-mime-database "%{_datadir}/mime" > /dev/null
 fi
 }}}

 (taken from
 http://cvs.fedora.redhat.com/viewcvs/rpms/drivel/F-7/drivel.spec?view=markup
 )

 After updating the mime database I could install Bernie's bundles.

-- 
Ticket URL: <http://dev.laptop.org/ticket/5815#comment:10>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list