[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:
Aaron Bohy 2015-01-06 14:41:02 +01:00
parent 95402dee81
commit 91026647d4
1 changed files with 4 additions and 1 deletions

View File

@ -241,8 +241,10 @@ class KVMWinTestExe(KVM):
#----------------------------------------------------------
# Stage: building
#----------------------------------------------------------
def _prepare_build_dir(o):
def _prepare_build_dir(o, win32=False):
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])
for i in glob(join(o.build_dir, 'addons/*')):
if i.split(os.path.sep)[-1] not in ADDONS_NOT_TO_PUBLISH:
@ -458,6 +460,7 @@ def main():
except Exception, e:
print("Won't publish the rpm release.\n Exception: %s" % str(e))
if not o.no_windows:
_prepare_build_dir(o, win32=True)
build_exe(o)
try:
if not o.no_testing: