Move get_compression() out of pkg.PkgPolicy class
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 15 May 2012 07:02:40 +0000 (10:02 +0300)
committerGuido Günther <agx@sigxcpu.org>
Thu, 24 Jul 2014 17:41:29 +0000 (19:41 +0200)
commit7f6b72e039efa5e2c3517b9336f9b29b4cb65c71
treed50d9136847892a9de5fbdf7614a731ad4e8a380
parent36c8e5cd00fd600be63160b0ef9427a70ab45870
Move get_compression() out of pkg.PkgPolicy class

Renames the function to parse_archive_filename() and changes it's
return values. Filename parsing is merely generic functionality, not
tied to any packaging policy.

The function now returns the base name of the file (that is, filename
without, archive and compression extensions), archive format and
compression method. Adds supported archive formats 'tar' and 'zip' and
file extension aliases, e.g. 'tgz'.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/pkg/__init__.py
gbp/scripts/buildpackage.py