Ticket #1748: 0001-Add-default-value-a-parameter-in-contentbundle.insta.patch

File 0001-Add-default-value-a-parameter-in-contentbundle.insta.patch, 973 bytes (added by godiard, 13 years ago)
  • src/sugar/bundle/contentbundle.py

    From 0154795ba35da0aba21af95b1031af71cc973eb9 Mon Sep 17 00:00:00 2001
    From: Gonzalo Odiard <godiard@sugarlabs.org>
    Date: Thu, 23 Dec 2010 05:56:21 -0200
    Subject: [PATCH] Add default value a parameter in contentbundle.install method
    
    When the bundle is installed from a pendrive, don't send the parameter
    and the install fail.
    ---
     src/sugar/bundle/contentbundle.py |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/src/sugar/bundle/contentbundle.py b/src/sugar/bundle/contentbundle.py
    index 7ee486e..095bef9 100644
    a b class ContentBundle(Bundle): 
    235235        else:
    236236            return False
    237237
    238     def install(self, install_path):
     238    def install(self, install_path=None):
    239239        # TODO ignore passed install_path argument
    240240        # needs rethinking while fixing ContentBundle support
    241241        install_path = env.get_user_library_path()