Add tar.gz output option in ovs-bugtool
authorShih-Hao Li <shli@nicira.com>
Wed, 18 May 2011 18:22:41 +0000 (11:22 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 18 May 2011 18:22:49 +0000 (11:22 -0700)
AUTHORS
debian/ovs-bugtool

diff --git a/AUTHORS b/AUTHORS
index 1aa1cb3c18ec039a06319d0a4fa21ab73efa1b91..b7f6cf5cb7339d0eeb1639b1badecfca6c26c3ae 100644 (file)
--- 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
index 209d937f4951c89b2cefc1ee9aa8330b1f5c8092..09c879b12b3e47ed6464df9aebf5e1510c8095ce 100755 (executable)
@@ -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: