This is an automated email from the git hooks/post-receive script. detiste-guest pushed a commit to branch master in repository game-data-packager.
commit b65e2d2eaa07c768faaefed43220c879107913f6 Author: Alexandre Detiste <[email protected]> Date: Wed Mar 15 01:28:08 2017 +0100 ArchLinux: add support for generating uncompressed packages --- game_data_packager/packaging/arch.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/game_data_packager/packaging/arch.py b/game_data_packager/packaging/arch.py index c7e8364..283e3ab 100644 --- a/game_data_packager/packaging/arch.py +++ b/game_data_packager/packaging/arch.py @@ -166,7 +166,17 @@ class ArchPackaging(PackagingSystem): assert os.path.isfile(os.path.join(destdir, '.PKGINFO')), destdir assert os.path.isfile(os.path.join(destdir, '.MTREE')), destdir - pkg_basename = '%s-%s-1-%s.pkg.tar.xz' % (package.name, package.version, arch) + if not compress: + flags = [] + ext = '' + elif compress == ['-Zgzip', '-z1']: + flags = ['--gzip', '--options=compression-level=1'] + ext = '.gz' + else: + flags = ['--xz'] + ext = '.xz' + + pkg_basename = '%s-%s-1-%s.pkg.tar%s' % (package.name, package.version, arch, ext) outfile = os.path.join(os.path.abspath(destination), pkg_basename) try: @@ -177,7 +187,10 @@ class ArchPackaging(PackagingSystem): full = os.path.join(dirpath, fn) full = full[len(destdir)+1:] files.add(full) - check_output(['fakeroot', 'bsdtar', 'cfJ', outfile] + sorted(files), + check_output(['fakeroot', 'bsdtar', '--create'] + + flags + + ['--file', outfile] + + sorted(files), cwd=destdir, env={'LANG':'C'}) except subprocess.CalledProcessError as cpe: print(cpe.output) -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

