]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
setup: fix previous patch to set reactor to poll reactor on linux or cygwin
authorZooko O'Whielacronx <zooko@zooko.com>
Wed, 14 Jan 2009 17:40:22 +0000 (10:40 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Wed, 14 Jan 2009 17:40:22 +0000 (10:40 -0700)
setup.py

index 11c833f86f70a686eadded782d857f54ee7ffa63..cfdd5be0f42384eb2faa83e6fe22afcb413762de 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -160,9 +160,8 @@ if 'trial' in sys.argv[1:]:
     # available but buggy on some versions of Mac OS X, so just because you can install it
     # doesn't mean we want to use it on every platform.
     if sys.platform in ("linux2", "cygwin"):
-        for arg in sys.argv:
-            if arg.startswith("--reactor")
-        sys.argv.append("--reactor=poll")
+        if not [a for a in sys.argv if a.startswith("--reactor")]:
+            sys.argv.append("--reactor=poll")
     setup_requires.append('setuptools_trial >= 0.2')
 
 # setuptools_darcs is required to produce complete distributions (such as with