Ticket #1509: 0001-Deprecate-host_version.patch

File 0001-Deprecate-host_version.patch, 1.2 KB (added by wadeb, 15 years ago)

Simply removes check for host_version

  • src/sugar/bundle/contentbundle.py

    From 9479c1d0706ac5ab558474558f61d6814687b85e Mon Sep 17 00:00:00 2001
    From: Wade Brainerd <wadetb@gmail.com>
    Date: Fri, 16 Oct 2009 22:42:03 -0400
    Subject: [PATCH] Deprecate host_version
    
    ---
     src/sugar/bundle/contentbundle.py |   12 ------------
     1 files changed, 0 insertions(+), 12 deletions(-)
    
    diff --git a/src/sugar/bundle/contentbundle.py b/src/sugar/bundle/contentbundle.py
    index 4b483cb..48e05a1 100644
    a b class ContentBundle(Bundle): 
    7474
    7575        section = 'Library'
    7676
    77         if cp.has_option(section, 'host_version'):
    78             version = cp.get(section, 'host_version')
    79             try:
    80                 if int(version) != 1:
    81                     raise MalformedBundleException(
    82                         'Content bundle %s has unknown host_version '
    83                         'number %s' % (self._path, version))
    84             except ValueError:
    85                 raise MalformedBundleException(
    86                     'Content bundle %s has invalid host_version number %s' %
    87                     (self._path, version))
    88 
    8977        if cp.has_option(section, 'name'):
    9078            self._name = cp.get(section, 'name')
    9179        else: