From: "Brian Dolbec" <brian.dolbec@gmail.com> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/layman:overlord_merge commit in: layman/ Date: Mon, 14 Feb 2011 00:54:12 +0000 (UTC) [thread overview] Message-ID: <ac8a52948f107265718dabe97e144a7cc4a70091.dol-sen@gentoo> (raw) commit: ac8a52948f107265718dabe97e144a7cc4a70091 Author: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> AuthorDate: Mon Feb 14 00:47:14 2011 +0000 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> CommitDate: Mon Feb 14 00:47:14 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=ac8a5294 fix a long line, clean an unused import, fix the sync return value better --- layman/api.py | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/layman/api.py b/layman/api.py index f3d68b6..63682f6 100644 --- a/layman/api.py +++ b/layman/api.py @@ -17,7 +17,6 @@ from sys import stderr import os from layman.config import BareConfig -#from layman.action import Sync from layman.dbbase import UnknownOverlayException, UnknownOverlayMessage from layman.db import DB, RemoteDB @@ -320,7 +319,8 @@ class LaymanAPI(object): candidates = ' %s' % tuple(available_srcs)[0] else: plural = 's' - candidates = '\n'.join((' %d. %s' % (ovl + 1, v)) for ovl, v in enumerate(available_srcs)) + candidates = '\n'.join((' %d. %s' % (ovl + 1, v)) \ + for ovl, v in enumerate(available_srcs)) warnings.append((ovl, 'The source of the overlay "%(repo_name)s" seems to have changed.\n' @@ -363,11 +363,10 @@ class LaymanAPI(object): self.output.error('\nErrors:\n------\n') for ovl, result in fatals: self.output.error(result + '\n') - return False self.sync_results = (success, warnings, fatals) - return True + return fatals != [] def fetch_remote_list(self):
WARNING: multiple messages have this Message-ID (diff)
From: "Brian Dolbec" <brian.dolbec@gmail.com> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/layman:master commit in: layman/ Date: Mon, 14 Feb 2011 06:00:33 +0000 (UTC) [thread overview] Message-ID: <ac8a52948f107265718dabe97e144a7cc4a70091.dol-sen@gentoo> (raw) Message-ID: <20110214060033.vsRZd0rqJuTD73hOeME1L6RVBuavrpz_svTIBcafpTw@z> (raw) commit: ac8a52948f107265718dabe97e144a7cc4a70091 Author: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> AuthorDate: Mon Feb 14 00:47:14 2011 +0000 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> CommitDate: Mon Feb 14 00:47:14 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=ac8a5294 fix a long line, clean an unused import, fix the sync return value better --- layman/api.py | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/layman/api.py b/layman/api.py index f3d68b6..63682f6 100644 --- a/layman/api.py +++ b/layman/api.py @@ -17,7 +17,6 @@ from sys import stderr import os from layman.config import BareConfig -#from layman.action import Sync from layman.dbbase import UnknownOverlayException, UnknownOverlayMessage from layman.db import DB, RemoteDB @@ -320,7 +319,8 @@ class LaymanAPI(object): candidates = ' %s' % tuple(available_srcs)[0] else: plural = 's' - candidates = '\n'.join((' %d. %s' % (ovl + 1, v)) for ovl, v in enumerate(available_srcs)) + candidates = '\n'.join((' %d. %s' % (ovl + 1, v)) \ + for ovl, v in enumerate(available_srcs)) warnings.append((ovl, 'The source of the overlay "%(repo_name)s" seems to have changed.\n' @@ -363,11 +363,10 @@ class LaymanAPI(object): self.output.error('\nErrors:\n------\n') for ovl, result in fatals: self.output.error(result + '\n') - return False self.sync_results = (success, warnings, fatals) - return True + return fatals != [] def fetch_remote_list(self):
next reply other threads:[~2011-02-14 0:54 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-02-14 0:54 Brian Dolbec [this message] 2011-02-14 6:00 ` [gentoo-commits] proj/layman:master commit in: layman/ Brian Dolbec -- strict thread matches above, loose matches on Subject: below -- 2011-02-14 6:00 Brian Dolbec 2011-02-14 0:54 ` [gentoo-commits] proj/layman:overlord_merge " Brian Dolbec 2011-02-14 6:00 [gentoo-commits] proj/layman:master " Brian Dolbec 2011-02-14 0:54 ` [gentoo-commits] proj/layman:overlord_merge " Brian Dolbec 2011-02-14 0:54 Brian Dolbec 2011-02-14 0:54 Brian Dolbec 2011-02-14 0:54 Brian Dolbec 2011-02-14 0:54 Brian Dolbec
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=ac8a52948f107265718dabe97e144a7cc4a70091.dol-sen@gentoo \ --to=brian.dolbec@gmail.com \ --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: linkBe 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