Fixed spelling of variable (#2516)

This commit is contained in:
Oliver Breitwieser 2016-12-07 22:08:51 +01:00 committed by Todd Gamblin
parent 72c01fbd33
commit 55059a53a3
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ class ConstraintAction(argparse.Action):
def __call__(self, parser, namespace, values, option_string=None):
# Query specs from command line
self.values = values
namespace.contraint = values
namespace.constraint = values
namespace.specs = self._specs
def _specs(self, **kwargs):

View file

@ -116,7 +116,7 @@ def find(parser, args):
query_specs = args.specs(**q_args)
# Exit early if no package matches the constraint
if not query_specs and args.constraint:
msg = "No package matches the query: {0}".format(args.contraint)
msg = "No package matches the query: {0}".format(args.constraint)
tty.msg(msg)
return
# Display the result