summaryrefslogtreecommitdiff
path: root/setup/package.py
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2014-09-18 11:23:40 +0200
committerSimon Lejeune <sle@openerp.com>2014-09-18 11:26:20 +0200
commit012bc01c113c8d008a0eb94219f1cb519519ff0d (patch)
tree363f5107877fdc66f36fb7ed22779ce75639951e /setup/package.py
parent7cad4baa84b7d5c1648842f4891501d672406b33 (diff)
[FIX] Package: Debian: finally a correct Packages generation
Diffstat (limited to 'setup/package.py')
-rwxr-xr-xsetup/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup/package.py b/setup/package.py
index e3952073ad1..4e2016db2f7 100755
--- a/setup/package.py
+++ b/setup/package.py
@@ -103,7 +103,8 @@ def publish(o, releases):
if release_extension == 'deb':
temp_path = tempfile.mkdtemp(suffix='debPackages')
system(['cp', release_path, temp_path])
- subprocess.Popen('dpkg-scanpackages . /dev/null | gzip -9c > %s' % join(o.pub, 'deb', 'Packages.gz'), shell=True, cwd=temp_path)
+ with open(os.path.join(o.pub, 'deb', 'Packages'), 'w') as out:
+ subprocess.call(['dpkg-scanpackages', '.'], stdout=out, cwd=temp_path)
shutil.rmtree(temp_path)
# Latest/symlink handler