Fix spelling of "ambiguous".
authorZac Medico <zmedico@gentoo.org>
Sun, 22 May 2011 09:03:04 +0000 (02:03 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 22 May 2011 09:03:04 +0000 (02:03 -0700)
bin/regenworld
pym/portage/tests/resolver/ResolverPlayground.py
pym/portage/tests/resolver/test_merge_order.py

index a314a98e86b1fc503cf2619db8bad5dde39c19db..6b5af4ca547e7f885ec1fcb34ee2b8fefb5b0e89 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/python
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 from __future__ import print_function
@@ -93,10 +93,10 @@ for mykey in biglist:
                        print("* ignoring broken log entry for %s (likely injected)" % mykey)
        except ValueError as e:
                try:
-                       print("* %s is an ambigous package name, candidates are:\n%s" % (mykey, e))
+                       print("* %s is an ambiguous package name, candidates are:\n%s" % (mykey, e))
                except AttributeError:
                        # FIXME: Find out what causes this (bug #344845).
-                       print("* %s is an ambigous package name" % (mykey,))
+                       print("* %s is an ambiguous package name" % (mykey,))
                continue
        if mylist:
                #print "mylist:",mylist
index 8e7f600b1caede118ff53b53abd70bd5e571e636..48ce6e74a59dddb6c01e9e4e3acc6a731d6e3df4 100644 (file)
@@ -474,7 +474,7 @@ class ResolverPlaygroundTestCase(object):
        def __init__(self, request, **kwargs):
                self.all_permutations = kwargs.pop("all_permutations", False)
                self.ignore_mergelist_order = kwargs.pop("ignore_mergelist_order", False)
-               self.ambigous_merge_order = kwargs.pop("ambigous_merge_order", False)
+               self.ambiguous_merge_order = kwargs.pop("ambiguous_merge_order", False)
                self.check_repo_names = kwargs.pop("check_repo_names", False)
                self.merge_order_assertions = kwargs.pop("merge_order_assertions", False)
 
@@ -535,7 +535,7 @@ class ResolverPlaygroundTestCase(object):
                                        got = set(got)
                                        expected = set(expected)
 
-                               if self.ambigous_merge_order and got:
+                               if self.ambiguous_merge_order and got:
                                        expected_stack = list(reversed(expected))
                                        got_stack = list(reversed(got))
                                        new_expected = []
index 548f203fe738e1b3772c10efd9f7ff8865ebb245..fdbfcb54d726bb36dd44ee5937bc029091ff3bf1 100644 (file)
@@ -123,12 +123,12 @@ class MergeOrderTestCase(TestCase):
                        ResolverPlaygroundTestCase(
                                ["app-misc/some-app-a"],
                                success = True,
-                               ambigous_merge_order = True,
+                               ambiguous_merge_order = True,
                                mergelist = [("app-misc/circ-runtime-a-1", "app-misc/circ-runtime-b-1", "app-misc/circ-runtime-c-1"), "app-misc/some-app-a-1"]),
                        ResolverPlaygroundTestCase(
                                ["app-misc/some-app-a"],
                                success = True,
-                               ambigous_merge_order = True,
+                               ambiguous_merge_order = True,
                                mergelist = [("app-misc/circ-runtime-c-1", "app-misc/circ-runtime-b-1", "app-misc/circ-runtime-a-1"), "app-misc/some-app-a-1"]),
                        # Test unsolvable circular dep that is RDEPEND in one
                        # direction and DEPEND in the other.
@@ -143,14 +143,14 @@ class MergeOrderTestCase(TestCase):
                        ResolverPlaygroundTestCase(
                                ["app-misc/some-app-c", "app-misc/circ-buildtime-a"],
                                success = True,
-                               ambigous_merge_order = True,
+                               ambiguous_merge_order = True,
                                mergelist = [("app-misc/circ-buildtime-b-1", "app-misc/circ-buildtime-c-1"), "app-misc/circ-buildtime-a-1", "app-misc/some-app-c-1"]),
                        # Test optimal merge order for a circular dep that is
                        # RDEPEND in one direction and PDEPEND in the other.
                        ResolverPlaygroundTestCase(
                                ["app-misc/some-app-b"],
                                success = True,
-                               ambigous_merge_order = True,
+                               ambiguous_merge_order = True,
                                mergelist = ["app-misc/circ-post-runtime-a-1", ("app-misc/circ-post-runtime-b-1", "app-misc/circ-post-runtime-c-1"), "app-misc/some-app-b-1"]),
                        # Test optimal merge order for a circular dep that is
                        # RDEPEND in one direction and DEPEND in the other,
@@ -162,7 +162,7 @@ class MergeOrderTestCase(TestCase):
                                ["app-misc/circ-satisfied-a", "app-misc/circ-satisfied-b", "app-misc/circ-satisfied-c"],
                                success = True,
                                all_permutations = True,
-                               ambigous_merge_order = True,
+                               ambiguous_merge_order = True,
                                merge_order_assertions = (("app-misc/circ-satisfied-a-1", "app-misc/circ-satisfied-c-1"),),
                                mergelist = [("app-misc/circ-satisfied-a-1", "app-misc/circ-satisfied-b-1", "app-misc/circ-satisfied-c-1")]),
                        # installed package has buildtime-only blocker