diff options
author | Simon Schampijer <simon@schampijer.de> | 2010-11-09 09:53:05 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2010-11-09 09:53:05 (GMT) |
commit | c7a80a1e56e4f52e280b0b1d87643899726f6c36 (patch) | |
tree | c62550475abc3ad0e1a952c2473eb458377d9c2b /src/sugar/activity/bundlebuilder.py | |
parent | d8217d293e13a13dfa0e2ddfee365c14cd85fc2f (diff) |
Add new numbering scheme #2425
- add class NormalizedVersion to parse and compare the new activity versions
- change the bundlebuilder and activitybundle to use the new scheme, instead
of an int version we expect a string that matches the format defined in
NormalizedVersion
Diffstat (limited to 'src/sugar/activity/bundlebuilder.py')
-rw-r--r-- | src/sugar/activity/bundlebuilder.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sugar/activity/bundlebuilder.py b/src/sugar/activity/bundlebuilder.py index fc8ebc8..d9dd96d 100644 --- a/src/sugar/activity/bundlebuilder.py +++ b/src/sugar/activity/bundlebuilder.py @@ -86,13 +86,13 @@ class Config(object): self.bundle_id = bundle.get_bundle_id() self.bundle_name = reduce(lambda x, y: x+y, self.activity_name.split()) self.bundle_root_dir = self.bundle_name + '.activity' - self.tar_root_dir = '%s-%d' % (self.bundle_name, self.version) + self.tar_root_dir = '%s-%s' % (self.bundle_name, self.version) if self.dist_name: self.xo_name = self.tar_name = self.dist_name else: - self.xo_name = '%s-%d.xo' % (self.bundle_name, self.version) - self.tar_name = '%s-%d.tar.bz2' % (self.bundle_name, self.version) + self.xo_name = '%s-%s.xo' % (self.bundle_name, self.version) + self.tar_name = '%s-%s.tar.bz2' % (self.bundle_name, self.version) class Builder(object): |