update command

This commit is contained in:
Yuta
2011-03-20 03:45:58 +09:00
parent c7c4ab09c8
commit 3a9cfe074e
6 changed files with 81 additions and 24 deletions
+5
View File
@@ -1,4 +1,5 @@
import sys
import re
import subprocess
from subprocess import Popen, PIPE
from pythonbrew.log import logger
@@ -23,6 +24,10 @@ class Curl(object):
if p.returncode:
raise
respinfo = {}
for line in p.stdout:
line = line.strip()
if re.match('^HTTP.*? 200 OK$', line):
break
for line in p.stdout:
line = line.strip().split(":", 1)
if len(line) == 2: