misc/check-build.py: ignore the 'Downloading file:..' line that occurs for the setup_requires= -triggered handling of the setuptools egg

This commit is contained in:
Brian Warner 2008-09-16 22:17:25 -07:00
parent 1853020a5f
commit cf27f81a88

View File

@ -8,10 +8,16 @@ good = True
build_out = sys.argv[1] build_out = sys.argv[1]
mode = sys.argv[2] mode = sys.argv[2]
print
for line in open(build_out, "r"): for line in open(build_out, "r"):
if mode == "no-downloads" and "downloading" in line.lower(): if mode == "no-downloads":
print line, # when setup_requires= uses misc/dependencies/setuptools-0.6c8.egg,
good = False # it causes a "Downloading: misc/dependencies/.." line to be emitted,
# which doesn't count as a network download.
if line.startswith("Reading ") or line.startswith("Downloading http:"):
print line,
good = False
if good: if good:
if mode == "no-downloads": if mode == "no-downloads":
print "Good: build did not try to download any files" print "Good: build did not try to download any files"