From 922596a38ab385bb61f242c84fa9c36a0dbf2c42 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 1 Jan 2013 07:45:03 -0500 Subject: [PATCH] swc-installation-test-2.py: Break after first successful or-dependency No need to test the other dependencies once you find one that matches. --- swc-installation-test-2.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.26.2