public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Brian Dolbec" <dolsen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/layman:master commit in: layman/laymanator/
Date: Mon,  2 Feb 2015 20:37:59 +0000 (UTC)	[thread overview]
Message-ID: <1422909382.ac77ac4e97aa552a2e28a9e641688dd8605caef7.dolsen@gentoo> (raw)

commit:     ac77ac4e97aa552a2e28a9e641688dd8605caef7
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  2 20:35:12 2015 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Mon Feb  2 20:36:22 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=ac77ac4e

laymanator.py: Updates for final portage API changes

---
 layman/laymanator/laymanator.py | 14 +++++++-------
 1 file 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()
 


             reply	other threads:[~2015-02-02 20:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-02 20:37 Brian Dolbec [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-02-05 21:46 [gentoo-commits] proj/layman:master commit in: layman/laymanator/ Devan Franchini
2015-02-04 17:13 Devan Franchini
2015-02-02 23:49 Devan Franchini
2015-02-02 23:12 Devan Franchini
2015-01-12 22:40 Devan Franchini
2014-12-08  4:15 Devan Franchini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1422909382.ac77ac4e97aa552a2e28a9e641688dd8605caef7.dolsen@gentoo \
    --to=dolsen@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox