#6985 HIGH Update1: sugar-install-bundle dies when no parameters are passes.

Zarro Boogs per Child bugtracker at laptop.org
Sun May 11 03:47:52 EDT 2008


#6985: sugar-install-bundle dies when no parameters are passes.
---------------------+------------------------------------------------------
  Reporter:  ffm     |       Owner:  marco                            
      Type:  defect  |      Status:  new                              
  Priority:  high    |   Milestone:  Update1.1                        
 Component:  sugar   |     Version:  Development build as of this date
Resolution:          |    Keywords:                                   
  Verified:  0       |    Blocking:                                   
 Blockedby:          |  
---------------------+------------------------------------------------------

Comment(by erikos):

 I actually would handle it like this - since only one argumant is
 supported:

 {{{
 +def cmd_help():
 +    print 'Usage: sugar-install-bundle [ bundlename ] \n\n\
 +    Install an activity bundle (.xo). \n'
 +
 +if len(sys.argv) != 2:
 +    cmd_help()
 +    sys.exit(2)
 +
  bundle = ActivityBundle(sys.argv[1])
  bundle.install()
 }}}

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


More information about the Bugs mailing list