swc-installation-test-2.py: Break after first successful or-dependency
authorW. Trevor King <wking@tremily.us>
Tue, 1 Jan 2013 12:45:03 +0000 (07:45 -0500)
committerW. Trevor King <wking@tremily.us>
Tue, 1 Jan 2013 14:49:48 +0000 (09:49 -0500)
No need to test the other dependencies once you find one that matches.

swc-installation-test-2.py

index 15125ee75f90095547cde57a8dc1e9e2d5dfc023..61c7e664445469e8a1f5f41f8cc2bbf17bd413c1 100755 (executable)
@@ -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