From: Alec Warner Date: Sun, 13 Jan 2008 00:55:21 +0000 (-0000) Subject: style fixes (imports), add support for --version (bug 138159) X-Git-Tag: v2.2_pre1~48 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5afdbde440fae41037774c0d602758e6851b0c12;p=portage.git style fixes (imports), add support for --version (bug 138159) svn path=/main/trunk/; revision=9200 --- diff --git a/bin/emaint b/bin/emaint index 483c77c8d..8464d1317 100755 --- a/bin/emaint +++ b/bin/emaint @@ -1,8 +1,11 @@ #!/usr/bin/python -O - -import sys, os, time, signal -from optparse import OptionParser, OptionValueError +# vim: noet : +import os import re +import signal +import sys +import time +from optparse import OptionParser, OptionValueError try: import portage @@ -12,6 +15,7 @@ except ImportError: import portage import portage.const, portage.exception, portage.output + class WorldHandler(object): def name(): @@ -448,7 +452,7 @@ def emaint_main(myargv): usage+= "tools and provide a single interface to system health checks." - parser = OptionParser(usage=usage) + parser = OptionParser(usage=usage, version=portage.VERSION) parser.add_option("-c", "--check", help="check for problems", action="callback", callback=exclusive, callback_kwargs={"var":"action"}) parser.add_option("-f", "--fix", help="attempt to fix problems",