Index: sitescripts/management/bin/generateHgAuth.py |
=================================================================== |
--- a/sitescripts/management/bin/generateHgAuth.py |
+++ b/sitescripts/management/bin/generateHgAuth.py |
@@ -16,17 +16,17 @@ |
# along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
import os, re, sys, subprocess, tarfile |
from StringIO import StringIO |
from sitescripts.utils import get_config, setupStderr |
def generateData(authRepo): |
command = ['hg', '-R', authRepo, 'archive', '-r', 'default', '-t', 'tar', '-p', '.', '-'] |
- (data, dummy) = subprocess.Popen(command, stdout=subprocess.PIPE).communicate() |
+ data = subprocess.check_output(command) |
users = {} |
repos = [] |
tarFile = tarfile.open(mode='r:', fileobj=StringIO(data)) |
fileInfo = tarFile.next() |
while fileInfo: |
name = fileInfo.name |
if name.startswith('./'): |