diff options
Diffstat (limited to 'plugins/reload_portage.py')
-rw-r--r-- | plugins/reload_portage.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/reload_portage.py b/plugins/reload_portage.py index 280bd92..1aea01f 100644 --- a/plugins/reload_portage.py +++ b/plugins/reload_portage.py @@ -13,15 +13,15 @@ from portato.backend import system class ReloadPortage (Plugin): - __author__ = "René 'Necoro' Neumann" - __description__ = """Reloads portage when an emerge process has finished. + __author__ = "René 'Necoro' Neumann" + __description__ = """Reloads portage when an emerge process has finished. This can take some time, but sometimes it is necessairy.""" - - def init(self): - self.add_call("after_emerge", self.hook, type = "after", dep = "EtcProposals") - self.status = self.STAT_DISABLED # disable by default - - def hook (self, *args, **kwargs): - system.reload_settings() + + def init(self): + self.add_call("after_emerge", self.hook, type = "after", dep = "EtcProposals") + self.status = self.STAT_DISABLED # disable by default + + def hook (self, *args, **kwargs): + system.reload_settings() register(ReloadPortage) |