Skip to content

Commit 020440f

Browse files
KangOlodony
authored andcommitted
[FIX] packaging: correct docker build name (part2)
1 parent 9b55bf5 commit 020440f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup/package.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#----------------------------------------------------------
2525
execfile(join(dirname(__file__), '..', 'odoo', 'release.py'))
2626
version = version.split('-')[0]
27+
docker_version = version.replace('+', '')
2728
timestamp = time.strftime("%Y%m%d", time.gmtime())
2829
GPGPASSPHRASE = os.getenv('GPGPASSPHRASE')
2930
GPGID = os.getenv('GPGID')
@@ -272,7 +273,6 @@ def build_exe(o):
272273
# Stage: testing
273274
#----------------------------------------------------------
274275
def _prepare_testing(o):
275-
docker_version = version.replace('+', '')
276276
if not o.no_tarball:
277277
subprocess.call(["mkdir", "docker_src"], cwd=o.build_dir)
278278
subprocess.call(["cp", "package.dfsrc", os.path.join(o.build_dir, "docker_src", "Dockerfile")],
@@ -299,7 +299,7 @@ def _prepare_testing(o):
299299
cwd=os.path.join(o.build_dir, "docker_fedora"))
300300

301301
def test_tgz(o):
302-
with docker('odoo-%s-src-nightly-tests' % version, o.build_dir, o.pub) as wheezy:
302+
with docker('odoo-%s-src-nightly-tests' % docker_version, o.build_dir, o.pub) as wheezy:
303303
wheezy.release = '*.tar.gz'
304304
wheezy.system("service postgresql start")
305305
wheezy.system('pip install /opt/release/%s' % wheezy.release)
@@ -312,7 +312,7 @@ def test_tgz(o):
312312
wheezy.system('su odoo -s /bin/bash -c "odoo --addons-path=/usr/local/lib/python2.7/dist-packages/odoo/addons -d mycompany &"')
313313

314314
def test_deb(o):
315-
with docker('odoo-%s-debian-nightly-tests' % version, o.build_dir, o.pub) as wheezy:
315+
with docker('odoo-%s-debian-nightly-tests' % docker_version, o.build_dir, o.pub) as wheezy:
316316
wheezy.release = '*.deb'
317317
wheezy.system("service postgresql start")
318318
wheezy.system('su postgres -s /bin/bash -c "createdb mycompany"')
@@ -322,7 +322,7 @@ def test_deb(o):
322322
wheezy.system('su odoo -s /bin/bash -c "odoo -c /etc/odoo/odoo.conf -d mycompany &"')
323323

324324
def test_rpm(o):
325-
with docker('odoo-%s-fedora-nightly-tests' % version, o.build_dir, o.pub) as fedora24:
325+
with docker('odoo-%s-fedora-nightly-tests' % docker_version, o.build_dir, o.pub) as fedora24:
326326
fedora24.release = '*.noarch.rpm'
327327
# Start postgresql
328328
fedora24.system('su postgres -c "/usr/bin/pg_ctl -D /var/lib/postgres/data start"')

0 commit comments

Comments
 (0)