Rev 83: In cygwin, gunzip is a shell script thunking over to gzip -d, while gzip is a real executable. in http://bazaar.launchpad.net/~meliae-dev/meliae/trunk

John Arbash Meinel john at arbash-meinel.com
Fri Sep 11 18:41:24 BST 2009


At http://bazaar.launchpad.net/~meliae-dev/meliae/trunk

------------------------------------------------------------
revno: 83
revision-id: john at arbash-meinel.com-20090911174107-zi78p7b0wwbs7yiq
parent: john at arbash-meinel.com-20090911173920-yfcry3l124m19eiv
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: trunk
timestamp: Fri 2009-09-11 12:41:07 -0500
message:
  In cygwin, gunzip is a shell script thunking over to gzip -d, while gzip is a real executable.
  So just use 'gzip -d' directly. It is more likely to be available, anyway.
-------------- next part --------------
=== modified file 'meliae/files.py'
--- a/meliae/files.py	2009-09-11 17:39:20 +0000
+++ b/meliae/files.py	2009-09-11 17:41:07 +0000
@@ -51,7 +51,7 @@
         else:
             close_fds = True
         try:
-            process = subprocess.Popen(['gunzip', '-c', filename],
+            process = subprocess.Popen(['gzip', '-d', '-c', filename],
                 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
                 stderr=subprocess.PIPE, close_fds=close_fds)
         except OSError, e:



More information about the bazaar-commits mailing list