]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
misc/check-build.py: ignore the 'Downloading file:..' line that occurs for the setup_...
authorBrian Warner <warner@lothar.com>
Wed, 17 Sep 2008 05:17:25 +0000 (22:17 -0700)
committerBrian Warner <warner@lothar.com>
Wed, 17 Sep 2008 05:17:25 +0000 (22:17 -0700)
misc/check-build.py

index 1e6e9c547326ab8808332d1aa1362a30e54c49f6..1b7899296f298e1dd87ea75757e79b07d8fbff5a 100644 (file)
@@ -8,10 +8,16 @@ good = True
 build_out = sys.argv[1]
 mode = sys.argv[2]
 
+print
+
 for line in open(build_out, "r"):
-    if mode == "no-downloads" and "downloading" in line.lower():
-        print line,
-        good = False
+    if mode == "no-downloads":
+        # when setup_requires= uses misc/dependencies/setuptools-0.6c8.egg,
+        # 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 mode == "no-downloads":
         print "Good: build did not try to download any files"