diff options
author | 2015-02-02 12:35:12 -0800 | |
---|---|---|
committer | 2015-02-02 12:36:22 -0800 | |
commit | ac77ac4e97aa552a2e28a9e641688dd8605caef7 (patch) | |
tree | 4c1245942829c5aea23cacdb77d73a5146d6c9c6 | |
parent | version.py: Bumps version number (diff) | |
download | layman-ac77ac4e97aa552a2e28a9e641688dd8605caef7.tar.gz layman-ac77ac4e97aa552a2e28a9e641688dd8605caef7.tar.bz2 layman-ac77ac4e97aa552a2e28a9e641688dd8605caef7.zip |
laymanator.py: Updates for final portage API changes
-rw-r--r-- | layman/laymanator/laymanator.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/layman/laymanator/laymanator.py b/layman/laymanator/laymanator.py index 94f26ee..c00ec0d 100644 --- a/layman/laymanator/laymanator.py +++ b/layman/laymanator/laymanator.py @@ -19,7 +19,7 @@ from portage.output import create_color_func good = create_color_func("GOOD") bad = create_color_func("BAD") warn = create_color_func("WARN") -from portage.sync.syncbase import SyncBase +from portage.sync.syncbase import NewBase import sys @@ -58,7 +58,7 @@ def create_overlay_package(config=None, repo=None, logger=None, xterm_titles=Non return None -class Layman(SyncBase): +class Layman(NewBase): ''' Layman sync class which makes use of a subprocess call to execute desired layman actions. @@ -77,7 +77,7 @@ class Layman(SyncBase): def __init__(self): - SyncBase.__init__(self, 'layman', 'app-portage/layman') + NewBase.__init__(self, 'layman', 'app-portage/layman') def _get_optargs(self, args): @@ -136,7 +136,7 @@ class Layman(SyncBase): return (exitcode, True) - def _sync(self): + def update(self): ''' Update existing repository''' emerge_config = self.options.get('emerge_config', None) portdb = self.options.get('portdb', None) @@ -183,7 +183,7 @@ class Layman(SyncBase): return (exitcode, True) -class PyLayman(SyncBase): +class PyLayman(NewBase): ''' Layman sync class which makes use of layman's modules to perform desired actions. @@ -201,7 +201,7 @@ class PyLayman(SyncBase): return "Layman" def __init__(self): - SyncBase.__init__(self, 'layman', 'app-portage/layman') + NewBase.__init__(self, 'layman', 'app-portage/layman') self._layman = None self.storage = '' @@ -321,7 +321,7 @@ class PyLayman(SyncBase): return (exitcode, True) - def _sync(self): + def update(self): ''' Update existing repository''' layman_inst = self._get_layman_api() |