1 |
commit: ac77ac4e97aa552a2e28a9e641688dd8605caef7 |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 2 20:35:12 2015 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 2 20:36:22 2015 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=ac77ac4e |
7 |
|
8 |
laymanator.py: Updates for final portage API changes |
9 |
|
10 |
--- |
11 |
layman/laymanator/laymanator.py | 14 +++++++------- |
12 |
1 file changed, 7 insertions(+), 7 deletions(-) |
13 |
|
14 |
diff --git a/layman/laymanator/laymanator.py b/layman/laymanator/laymanator.py |
15 |
index 94f26ee..c00ec0d 100644 |
16 |
--- a/layman/laymanator/laymanator.py |
17 |
+++ b/layman/laymanator/laymanator.py |
18 |
@@ -19,7 +19,7 @@ from portage.output import create_color_func |
19 |
good = create_color_func("GOOD") |
20 |
bad = create_color_func("BAD") |
21 |
warn = create_color_func("WARN") |
22 |
-from portage.sync.syncbase import SyncBase |
23 |
+from portage.sync.syncbase import NewBase |
24 |
|
25 |
import sys |
26 |
|
27 |
@@ -58,7 +58,7 @@ def create_overlay_package(config=None, repo=None, logger=None, xterm_titles=Non |
28 |
return None |
29 |
|
30 |
|
31 |
-class Layman(SyncBase): |
32 |
+class Layman(NewBase): |
33 |
''' |
34 |
Layman sync class which makes use of a subprocess call to |
35 |
execute desired layman actions. |
36 |
@@ -77,7 +77,7 @@ class Layman(SyncBase): |
37 |
|
38 |
|
39 |
def __init__(self): |
40 |
- SyncBase.__init__(self, 'layman', 'app-portage/layman') |
41 |
+ NewBase.__init__(self, 'layman', 'app-portage/layman') |
42 |
|
43 |
|
44 |
def _get_optargs(self, args): |
45 |
@@ -136,7 +136,7 @@ class Layman(SyncBase): |
46 |
return (exitcode, True) |
47 |
|
48 |
|
49 |
- def _sync(self): |
50 |
+ def update(self): |
51 |
''' Update existing repository''' |
52 |
emerge_config = self.options.get('emerge_config', None) |
53 |
portdb = self.options.get('portdb', None) |
54 |
@@ -183,7 +183,7 @@ class Layman(SyncBase): |
55 |
return (exitcode, True) |
56 |
|
57 |
|
58 |
-class PyLayman(SyncBase): |
59 |
+class PyLayman(NewBase): |
60 |
''' |
61 |
Layman sync class which makes use of layman's modules to |
62 |
perform desired actions. |
63 |
@@ -201,7 +201,7 @@ class PyLayman(SyncBase): |
64 |
return "Layman" |
65 |
|
66 |
def __init__(self): |
67 |
- SyncBase.__init__(self, 'layman', 'app-portage/layman') |
68 |
+ NewBase.__init__(self, 'layman', 'app-portage/layman') |
69 |
|
70 |
self._layman = None |
71 |
self.storage = '' |
72 |
@@ -321,7 +321,7 @@ class PyLayman(SyncBase): |
73 |
|
74 |
return (exitcode, True) |
75 |
|
76 |
- def _sync(self): |
77 |
+ def update(self): |
78 |
''' Update existing repository''' |
79 |
layman_inst = self._get_layman_api() |