Fixed spelling of variable (#2516)
This commit is contained in:
parent
72c01fbd33
commit
55059a53a3
2 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ class ConstraintAction(argparse.Action):
|
||||||
def __call__(self, parser, namespace, values, option_string=None):
|
def __call__(self, parser, namespace, values, option_string=None):
|
||||||
# Query specs from command line
|
# Query specs from command line
|
||||||
self.values = values
|
self.values = values
|
||||||
namespace.contraint = values
|
namespace.constraint = values
|
||||||
namespace.specs = self._specs
|
namespace.specs = self._specs
|
||||||
|
|
||||||
def _specs(self, **kwargs):
|
def _specs(self, **kwargs):
|
||||||
|
|
|
@ -116,7 +116,7 @@ def find(parser, args):
|
||||||
query_specs = args.specs(**q_args)
|
query_specs = args.specs(**q_args)
|
||||||
# Exit early if no package matches the constraint
|
# Exit early if no package matches the constraint
|
||||||
if not query_specs and args.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)
|
tty.msg(msg)
|
||||||
return
|
return
|
||||||
# Display the result
|
# Display the result
|
||||||
|
|
Loading…
Reference in a new issue