From c7bb3f195b4434abb8319fb2f92e1cb7955af982 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sat, 9 Apr 2011 23:04:30 +0200 Subject: Add aliases for gz and bz2 compression types --- gbp/deb.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gbp') diff --git a/gbp/deb.py b/gbp/deb.py index 9f81c6a5..7d612d3b 100644 --- a/gbp/deb.py +++ b/gbp/deb.py @@ -46,6 +46,10 @@ compressor_opts = { 'gzip' : [ '-n', 'gz' ], 'lzma' : [ '', 'lzma' ], 'xz' : [ '', 'xz' ] } +# Map frequently used names of compression types to the internal ones: +compressor_aliases = { 'bz2' : 'bzip2', + 'gz' : 'gzip', } + class NoChangelogError(Exception): """no changelog found""" pass -- cgit v1.2.3