summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorShih-Hao Li <shli@nicira.com>2011-05-18 11:22:41 -0700
committerBen Pfaff <blp@nicira.com>2011-05-18 11:22:49 -0700
commitf9c71a155bb27a981865407d5a3d78ecd9ca24af (patch)
treee0b463aec1e7473df7de6c0e428508a5f814765e /debian
parentaa77020c361ffba011d7ec9603caa55aaa01cd1f (diff)
downloadopenvswitch-f9c71a155bb27a981865407d5a3d78ecd9ca24af.tar.gz
Add tar.gz output option in ovs-bugtool
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/ovs-bugtool4
1 files changed, 3 insertions, 1 deletions
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: