From afa1de13f0576ace6dcbb0176490fd20922950cd Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Tue, 2 Sep 2008 13:01:17 +0200 Subject: Switch from tabs to 4 spaces --- plugins/etc_proposals.py | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'plugins/etc_proposals.py') diff --git a/plugins/etc_proposals.py b/plugins/etc_proposals.py index c32c8f3..5b4f67a 100644 --- a/plugins/etc_proposals.py +++ b/plugins/etc_proposals.py @@ -16,26 +16,26 @@ import os from subprocess import Popen class EtcProposals (Plugin): - __author__ = "René 'Necoro' Neumann" - __description__ = "Adds support for etc-proposals, a graphical etc-update replacement." - __dependency__ = ["app-portage/etc-proposals"] - - def init (self): - self.prog = ["/usr/sbin/etc-proposals"] - self.add_call("after_emerge", self.hook, type = "after") - self.add_menu("Et_c-Proposals", self.menu) - - def launch (self, options = []): - if os.getuid() == 0: - Popen(self.prog+options) - else: - error("ETC_PROPOSALS :: %s",_("Cannot start etc-proposals. Not root!")) - - def hook (self, *args, **kwargs): - """Entry point for this plugin.""" - self.launch(["--fastexit"]) - - def menu (self, *args): - self.launch() + __author__ = "René 'Necoro' Neumann" + __description__ = "Adds support for etc-proposals, a graphical etc-update replacement." + __dependency__ = ["app-portage/etc-proposals"] + + def init (self): + self.prog = ["/usr/sbin/etc-proposals"] + self.add_call("after_emerge", self.hook, type = "after") + self.add_menu("Et_c-Proposals", self.menu) + + def launch (self, options = []): + if os.getuid() == 0: + Popen(self.prog+options) + else: + error("ETC_PROPOSALS :: %s",_("Cannot start etc-proposals. Not root!")) + + def hook (self, *args, **kwargs): + """Entry point for this plugin.""" + self.launch(["--fastexit"]) + + def menu (self, *args): + self.launch() register(EtcProposals) -- cgit v1.2.3-54-g00ecf