[Bugs] #2175 UNSP: ActivityBundle._parse_info() mentions recently removed 'class' key

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue Aug 17 07:12:50 EDT 2010


#2175: ActivityBundle._parse_info() mentions recently removed 'class' key
------------------------------------------+---------------------------------
    Reporter:  sascha_silbe               |          Owner:  erikos           
        Type:  defect                     |         Status:  new              
    Priority:  Unspecified by Maintainer  |      Milestone:  0.90             
   Component:  sugar-toolkit              |        Version:  Git as of bugdate
    Severity:  Major                      |       Keywords:                   
Distribution:                             |   Status_field:  New              
------------------------------------------+---------------------------------
 If an activity bundle uses the obsolete {{{class}}} key instead of
 {{{exec}}}, {{{sugar.bundle.activitybundle.ActivityBundle._parse_info()}}}
 raises a sugar.bundle.bundle.MalformedBundleException that tells the user
 to set {{{exec}}} or {{{class}}}. This is going to be rather confusing to
 activity developers.

 {{{
 *** Installing pippy *** [17/26]
 python setup.py install --prefix /home/sascha.silbe/sugar-jhbuild/install
 Traceback (most recent call last):
   File "setup.py", line 21, in <module>
     bundlebuilder.start()
   File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-
 packages/sugar/activity/bundlebuilder.py", line 415, in start
     config = Config()
   File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-
 packages/sugar/activity/bundlebuilder.py", line 80, in __init__
     self.update()
   File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-
 packages/sugar/activity/bundlebuilder.py", line 83, in update
     self.bundle = bundle = ActivityBundle(self.source_dir)
   File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-
 packages/sugar/bundle/activitybundle.py", line 67, in __init__
     self._parse_info(info_file)
   File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-
 packages/sugar/bundle/activitybundle.py", line 168, in _parse_info
     self._path)
 sugar.bundle.bundle.MalformedBundleException: Activity bundle
 /home/sascha.silbe/sugar-jhbuild/source/pippy must specify either class or
 exec
 *** Error during phase install of pippy: ########## Error running python
 setup.py install --prefix /home/sascha.silbe/sugar-jhbuild/install ***
 [17/26]
 }}}

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2175>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list