[ovs-dev] [PATCH] Add tar.gz output option in ovs-bugtool
Shih-Hao Li
shli at nicira.com
Wed May 18 18:04:56 UTC 2011
diff --git a/debian/ovs-bugtool b/debian/ovs-bugtool
index 209d937..09c879b 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:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20110518/62fd2d8d/attachment-0003.html>
More information about the dev
mailing list