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): |
74 | 74 | |
75 | 75 | section = 'Library' |
76 | 76 | |
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 | | |
89 | 77 | if cp.has_option(section, 'name'): |
90 | 78 | self._name = cp.get(section, 'name') |
91 | 79 | else: |