incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1717138 - /incubator/public/trunk/clutch.py
Date Sun, 29 Nov 2015 23:50:04 GMT
Author: sebb
Date: Sun Nov 29 23:50:03 2015
New Revision: 1717138

URL: http://svn.apache.org/viewvc?rev=1717138&view=rev
Log:
Add logging

Modified:
    incubator/public/trunk/clutch.py

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=1717138&r1=1717137&r2=1717138&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Sun Nov 29 23:50:03 2015
@@ -183,6 +183,10 @@ def osExec(list):
   logexternal(" ".join(list))
   return subprocess.Popen(list, stdout=subprocess.PIPE).communicate()[0]
 
+def osPopen(list):
+  logexternal(" ".join(list))
+  return subprocess.Popen(list, stdout=subprocess.PIPE, universal_newlines=True)
+
 def getText(nodelist):
   """http://www.python.org/doc/2.5.2/lib/minidom-example.txt"""
   rc = ""
@@ -590,7 +594,7 @@ releases = {}
 releasesBadName = {}
 distareas = {} # podlings with dist areas
 
-with Popen(['svn', 'ls', '-R', 'https://dist.apache.org/repos/dist/release/incubator'], stdout=PIPE,
universal_newlines=True) as s:
+with osPopen(['svn', 'ls', '-R', 'https://dist.apache.org/repos/dist/release/incubator'])
as s:
     for line in s.stdout:
         line = line.rstrip()
         fields = line.split('/')



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message