diff --git a/src/sugar/bundle/activitybundle.py b/src/sugar/bundle/activitybundle.py
index a1f10b9..73c44e5 100644
a
|
b
|
import locale |
25 | 25 | import os |
26 | 26 | import tempfile |
27 | 27 | import logging |
| 28 | from decimal import Decimal |
28 | 29 | |
29 | 30 | from sugar import env |
30 | 31 | from sugar import util |
… |
… |
class ActivityBundle(Bundle): |
57 | 58 | self._show_launcher = True |
58 | 59 | self._tags = None |
59 | 60 | self._activity_version = 0 |
| 61 | self._activity_minor_version = 0 |
60 | 62 | self._installation_time = os.stat(path).st_mtime |
61 | 63 | self._manifest = None |
62 | 64 | |
… |
… |
class ActivityBundle(Bundle): |
193 | 195 | 'Activity bundle %s has invalid version number %s' % |
194 | 196 | (self._path, version)) |
195 | 197 | |
| 198 | if cp.has_option(section, 'activity_minor_version'): |
| 199 | version = cp.get(section, 'activity_minor_version') |
| 200 | try: |
| 201 | self._activity_minor_version = int(version) |
| 202 | except ValueError: |
| 203 | raise MalformedBundleException( |
| 204 | 'Activity bundle %s has invalid minor version number %s' % |
| 205 | (self._path, version)) |
| 206 | self._activity_version = float(self._activity_version + |
| 207 | Decimal(self._activity_minor_version)/10) |
| 208 | else: |
| 209 | self._activity_version = float(self._activity_version) |
| 210 | |
196 | 211 | def _get_linfo_file(self): |
197 | 212 | lang = locale.getdefaultlocale()[0] |
198 | 213 | if not lang: |