From f9c71a155bb27a981865407d5a3d78ecd9ca24af Mon Sep 17 00:00:00 2001 From: Shih-Hao Li Date: Wed, 18 May 2011 11:22:41 -0700 Subject: [PATCH] Add tar.gz output option in ovs-bugtool --- AUTHORS | 1 + debian/ovs-bugtool | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 1aa1cb3c1..b7f6cf5cb 100644 --- a/AUTHORS +++ b/AUTHORS @@ -26,6 +26,7 @@ Paul Fazzone pfazzone@nicira.com Reid Price reid@nicira.com Romain Lenglet romain.lenglet@berabera.info Sajjad Lateef slateef@nicira.com +Shih-Hao Li shli@nicira.com Simon Horman horms@verge.net.au Tetsuo NAKAGAWA nakagawa@mxc.nes.nec.co.jp Thomas Lacroix thomas.lacroix@citrix.com diff --git a/debian/ovs-bugtool b/debian/ovs-bugtool index 209d937f4..09c879b12 100755 --- a/debian/ovs-bugtool +++ b/debian/ovs-bugtool @@ -389,7 +389,7 @@ def main(argv = None): return 0 if k == '--output': - if v in ['tar', 'tar.bz2', 'zip']: + if v in ['tar', 'tar.bz2', 'tar.gz', 'zip']: output_type = v else: print >>sys.stderr, "Invalid output format '%s'" % v @@ -780,6 +780,8 @@ def make_tar(subdir, suffix, output_fd): mode = 'w' if suffix == 'tar.bz2': mode = 'w:bz2' + elif suffix == 'tar.gz': + mode = 'w:gz' filename = "%s/%s.%s" % (BUG_DIR, subdir, suffix) if output_fd == -1: -- 2.43.0