From 7019c5dfa800871a431d9ee254ad09b95274bc4c Mon Sep 17 00:00:00 2001 From: Necoro <> Date: Tue, 13 Nov 2007 22:18:41 +0000 Subject: r546@Devoty: necoro | 2007-11-13 19:08:28 +0100 Added log tab r547@Devoty: necoro | 2007-11-13 23:10:39 +0100 added ebuild and changelog tab r548@Devoty: necoro | 2007-11-13 23:14:17 +0100 removed EbuildWindow and '--ebuild' option r549@Devoty: necoro | 2007-11-13 23:17:51 +0100 small change --- portato.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'portato.py') diff --git a/portato.py b/portato.py index 61fb8d3..b051a4a 100755 --- a/portato.py +++ b/portato.py @@ -49,9 +49,6 @@ def main (): parser.add_option("-f", "--frontend", action = "store", choices = FRONTENDS, default = STD_FRONTEND, dest = "frontend", help = _("the frontend to use - possible values are: %s [default: %%default]") % get_frontend_list()) - parser.add_option("-e", "--ebuild", action = "store", dest = "ebuild", - help = _("opens the ebuild viewer instead of launching Portato")) - parser.add_option("--shm", action = "store", nargs = 3, type="long", dest = "shm", help = SUPPRESS_HELP) @@ -78,14 +75,12 @@ def main (): options.frontend = arg try: - exec ("from portato.gui.%s import run, show_ebuild" % options.frontend) + exec ("from portato.gui.%s import run" % options.frontend) except ImportError, e: print _("'%(frontend)s' should be installed, but cannot be imported. This is definitely a bug. (%(error)s)") % {"frontend": options.frontend, "error": e[0]} sys.exit(1) - if options.ebuild: # show ebuild - show_ebuild(options.ebuild) - elif options.validate: # validate a plugin + if options.validate: # validate a plugin from lxml import etree try: etree.XMLSchema(file = XSD_LOCATION).assertValid(etree.parse(options.validate)) -- cgit v1.2.3