[FIX] Package: Debian: finally a correct Packages generation

This commit is contained in:
Simon Lejeune 2014-09-18 11:23:40 +02:00
parent 7cad4baa84
commit 012bc01c11
1 changed files with 2 additions and 1 deletions

View File

@ -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