#!/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
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
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)
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 = []
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.
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,
["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