summaryrefslogtreecommitdiff
path: root/plugins/etc_proposals.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugins/etc_proposals.py42
1 files changed, 21 insertions, 21 deletions
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 <b>etc-proposals</b>, 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 <b>etc-proposals</b>, 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)