Fix an incorrect variable reference triggered when using --fix and --check
authorJason Stubbs <jstubbs@gentoo.org>
Sat, 24 Dec 2005 09:11:07 +0000 (09:11 -0000)
committerJason Stubbs <jstubbs@gentoo.org>
Sat, 24 Dec 2005 09:11:07 +0000 (09:11 -0000)
together. Patch by Ashley Stovall.  # 116576

svn path=/main/trunk/; revision=2444

bin/emaint

index 617cf2a1a5b8d0c9815c2dd8c5050e9e66e13d27..2054f42c715507a48e9dc8432b24a19fc6e845cd 100755 (executable)
@@ -67,7 +67,7 @@ def exclusive(option, unused1, unused2, unused3, var=None):
        if not var:
                raise ValueError("var not specified to exclusive()")
        if getattr(parser, var, ""):
-               raise OptionValueError("%s and %s are exclusive options" % (getattr(parser, var), value))
+               raise OptionValueError("%s and %s are exclusive options" % (getattr(parser, var), option))
        setattr(parser, var, str(option))