[FIX] Package: Debian: finally a correct Packages generation
This commit is contained in:
parent
7cad4baa84
commit
012bc01c11
|
@ -103,7 +103,8 @@ def publish(o, releases):
|
||||||
if release_extension == 'deb':
|
if release_extension == 'deb':
|
||||||
temp_path = tempfile.mkdtemp(suffix='debPackages')
|
temp_path = tempfile.mkdtemp(suffix='debPackages')
|
||||||
system(['cp', release_path, temp_path])
|
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)
|
shutil.rmtree(temp_path)
|
||||||
|
|
||||||
# Latest/symlink handler
|
# Latest/symlink handler
|
||||||
|
|
Loading…
Reference in New Issue