[FIX] Packaging: Debian: do not include setup/win32 in sources
This prevents to put postgresql-9.3.5-1-windows.exe, node.exe and wkhtmltopdf.exe in the tar.gz produced with debhelper, saving approx. 60MB.
This commit is contained in:
parent
95402dee81
commit
91026647d4
|
@ -241,8 +241,10 @@ class KVMWinTestExe(KVM):
|
||||||
#----------------------------------------------------------
|
#----------------------------------------------------------
|
||||||
# Stage: building
|
# Stage: building
|
||||||
#----------------------------------------------------------
|
#----------------------------------------------------------
|
||||||
def _prepare_build_dir(o):
|
def _prepare_build_dir(o, win32=False):
|
||||||
cmd = ['rsync', '-a', '--exclude', '.git', '--exclude', '*.pyc', '--exclude', '*.pyo']
|
cmd = ['rsync', '-a', '--exclude', '.git', '--exclude', '*.pyc', '--exclude', '*.pyo']
|
||||||
|
if not win32:
|
||||||
|
cmd += ['--exclude', 'setup/win32']
|
||||||
system(cmd + ['%s/' % o.odoo_dir, o.build_dir])
|
system(cmd + ['%s/' % o.odoo_dir, o.build_dir])
|
||||||
for i in glob(join(o.build_dir, 'addons/*')):
|
for i in glob(join(o.build_dir, 'addons/*')):
|
||||||
if i.split(os.path.sep)[-1] not in ADDONS_NOT_TO_PUBLISH:
|
if i.split(os.path.sep)[-1] not in ADDONS_NOT_TO_PUBLISH:
|
||||||
|
@ -458,6 +460,7 @@ def main():
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print("Won't publish the rpm release.\n Exception: %s" % str(e))
|
print("Won't publish the rpm release.\n Exception: %s" % str(e))
|
||||||
if not o.no_windows:
|
if not o.no_windows:
|
||||||
|
_prepare_build_dir(o, win32=True)
|
||||||
build_exe(o)
|
build_exe(o)
|
||||||
try:
|
try:
|
||||||
if not o.no_testing:
|
if not o.no_testing:
|
||||||
|
|
Loading…
Reference in New Issue