diff options
| author | Simon Lejeune <sle@openerp.com> | 2016-09-25 14:00:21 +0200 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2016-09-30 12:05:49 +0200 |
| commit | ea3d9e69ef540d6562b3d8aa8c670f9bccb291d9 (patch) | |
| tree | 2d4d42615f8cd6e465912e0ba15398b3f55269d8 /setup/package.py | |
| parent | 7f8ad73618fdd3af77c2587cf4b87659681990a0 (diff) | |
[REF] packaging: windows: remove use of version_full
This way we do not have to pass the version as argument. This
was error prone. If the timestamp has to be included in the
version, just patch it during before running package.py. This
was already done in our nightly servers anyway.
Diffstat (limited to 'setup/package.py')
| -rwxr-xr-x | setup/package.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/setup/package.py b/setup/package.py index 743e9c63f18..5bc540e1602 100755 --- a/setup/package.py +++ b/setup/package.py @@ -196,7 +196,7 @@ class KVM(object): class KVMWinBuildExe(KVM): def run(self): with open(join(self.o.build_dir, 'setup/win32/Makefile.version'), 'w') as f: - f.write("VERSION=%s\n" % self.o.version_full) + f.write("VERSION=%s\n" % version) with open(join(self.o.build_dir, 'setup/win32/Makefile.python'), 'w') as f: f.write("PYTHON_VERSION=%s\n" % self.o.vm_winxp_python_version.replace('.', '')) with open(join(self.o.build_dir, 'setup/win32/Makefile.servicename'), 'w') as f: @@ -210,8 +210,6 @@ class KVMWinBuildExe(KVM): class KVMWinTestExe(KVM): def run(self): - # Cannot use o.version_full when the version is not correctly parsed - # (for instance, containing *rc* or *dev*) setuppath = glob("%s/openerp-server-setup-*.exe" % self.o.build_dir)[0] setupfile = setuppath.split('/')[-1] setupversion = setupfile.split('openerp-server-setup-')[1].split('.exe')[0] @@ -404,7 +402,6 @@ def options(): op.add_option("-b", "--build-dir", default=build_dir, help="build directory (%default)", metavar="DIR") op.add_option("-p", "--pub", default=None, help="pub directory (%default)", metavar="DIR") op.add_option("", "--no-testing", action="store_true", help="don't test the builded packages") - op.add_option("-v", "--version", default='9.0', help="version (%default)") op.add_option("", "--no-debian", action="store_true", help="don't build the debian package") op.add_option("", "--no-rpm", action="store_true", help="don't build the rpm package") @@ -421,8 +418,7 @@ def options(): # derive other options o.odoo_dir = root o.pkg = join(o.build_dir, 'pkg') - o.version_full = '%s-%s' % (o.version, timestamp) - o.work = join(o.build_dir, 'openerp-%s' % o.version_full) + o.work = join(o.build_dir, 'openerp-%s' % version) o.work_addons = join(o.work, 'odoo', 'addons') return o |
