summaryrefslogtreecommitdiff
path: root/plugins/etc_proposals.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-09-02 13:01:17 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-09-02 13:01:17 +0200
commitafa1de13f0576ace6dcbb0176490fd20922950cd (patch)
tree056a5fd646f53dfa83f2fe231ec0943747b15ffc /plugins/etc_proposals.py
parent02d96210d9102f0cdec95b4e0f595cbd8fdd1e10 (diff)
downloadportato-afa1de13f0576ace6dcbb0176490fd20922950cd.tar.gz
portato-afa1de13f0576ace6dcbb0176490fd20922950cd.tar.bz2
portato-afa1de13f0576ace6dcbb0176490fd20922950cd.zip
Switch from tabs to 4 spaces
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)