From: W. Trevor King Date: Tue, 1 Jan 2013 12:45:03 +0000 (-0500) Subject: swc-installation-test-2.py: Break after first successful or-dependency X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=922596a38ab385bb61f242c84fa9c36a0dbf2c42;p=swc-boot-camp.git swc-installation-test-2.py: Break after first successful or-dependency No need to test the other dependencies once you find one that matches. --- diff --git a/swc-installation-test-2.py b/swc-installation-test-2.py index 15125ee..61c7e66 100755 --- a/swc-installation-test-2.py +++ b/swc-installation-test-2.py @@ -182,6 +182,7 @@ class Dependency (object): 'dependency': dependency, 'version': version, } + break # no need to test other dependencies if self.or_dependencies and not self.or_pass: raise or_error