Skip to content

Commit

Permalink
[FIX] Packaging: allow publishing releases in --no-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
aab-odoo authored and sle-odoo committed Nov 28, 2014
1 parent b747b3d commit cc11331
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions setup/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,36 +370,36 @@ def main():
try:
if not o.no_tarball:
build_tgz(o)
if not o.no_testing:
try:
try:
if not o.no_testing:
test_tgz(o)
publish(o, 'odoo.tar.gz')
except Exception, e:
print("Won't publish the tgz release.\n Exception: %s" % str(e))
publish(o, 'odoo.tar.gz')
except Exception, e:
print("Won't publish the tgz release.\n Exception: %s" % str(e))
if not o.no_debian:
build_deb(o)
if not o.no_testing:
try:
try:
if not o.no_testing:
test_deb(o)
publish(o, ['odoo.deb', 'odoo.dsc', 'odoo_amd64.changes', 'odoo.deb.tar.gz'])
except Exception, e:
print("Won't publish the deb release.\n Exception: %s" % str(e))
publish(o, ['odoo.deb', 'odoo.dsc', 'odoo_amd64.changes', 'odoo.deb.tar.gz'])
except Exception, e:
print("Won't publish the deb release.\n Exception: %s" % str(e))
if not o.no_rpm:
build_rpm(o)
if not o.no_testing:
try:
try:
if not o.no_testing:
test_rpm(o)
publish(o, ['odoo.noarch.rpm', 'odoo.src.rpm'])
except Exception, e:
print("Won't publish the rpm release.\n Exception: %s" % str(e))
publish(o, ['odoo.noarch.rpm', 'odoo.src.rpm'])
except Exception, e:
print("Won't publish the rpm release.\n Exception: %s" % str(e))
if not o.no_windows:
build_exe(o)
if not o.no_testing:
try:
try:
if not o.no_testing:
test_exe(o)
publish(o, 'odoo.exe')
except Exception, e:
print("Won't publish the exe release.\n Exception: %s" % str(e))
publish(o, 'odoo.exe')
except Exception, e:
print("Won't publish the exe release.\n Exception: %s" % str(e))
except:
pass
finally:
Expand Down

0 comments on commit cc11331

Please sign in to comment.