[FIX] Packaging: do not publish add-on web_analytics
This fixes the privacy-breach-google-adsense lintian error for Debian packaging.
This commit is contained in:
parent
b3aca1d825
commit
95402dee81
|
@ -50,6 +50,9 @@ PUBLISH_DIRS = {
|
||||||
'tarball': 'src',
|
'tarball': 'src',
|
||||||
'windows': 'exe',
|
'windows': 'exe',
|
||||||
}
|
}
|
||||||
|
ADDONS_NOT_TO_PUBLISH = [
|
||||||
|
'web_analytics'
|
||||||
|
]
|
||||||
|
|
||||||
def mkdir(d):
|
def mkdir(d):
|
||||||
if not os.path.isdir(d):
|
if not os.path.isdir(d):
|
||||||
|
@ -242,7 +245,8 @@ def _prepare_build_dir(o):
|
||||||
cmd = ['rsync', '-a', '--exclude', '.git', '--exclude', '*.pyc', '--exclude', '*.pyo']
|
cmd = ['rsync', '-a', '--exclude', '.git', '--exclude', '*.pyc', '--exclude', '*.pyo']
|
||||||
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/*')):
|
||||||
shutil.move(i, join(o.build_dir, 'openerp/addons'))
|
if i.split(os.path.sep)[-1] not in ADDONS_NOT_TO_PUBLISH:
|
||||||
|
shutil.move(i, join(o.build_dir, 'openerp/addons'))
|
||||||
|
|
||||||
def build_tgz(o):
|
def build_tgz(o):
|
||||||
system(['python2', 'setup.py', 'sdist', '--quiet', '--formats=gztar,zip'], o.build_dir)
|
system(['python2', 'setup.py', 'sdist', '--quiet', '--formats=gztar,zip'], o.build_dir)
|
||||||
|
|
Loading…
Reference in New Issue