From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Pomi3-0006Ko-Sj for garchives@archives.gentoo.org; Mon, 14 Feb 2011 00:54:36 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 63C52E09B6; Mon, 14 Feb 2011 00:54:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 33BC0E09B6 for ; Mon, 14 Feb 2011 00:54:13 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 831A91B40C0 for ; Mon, 14 Feb 2011 00:54:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id B628B80073 for ; Mon, 14 Feb 2011 00:54:12 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: Subject: [gentoo-commits] proj/layman:overlord_merge commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/api.py X-VCS-Directories: layman/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: ac8a52948f107265718dabe97e144a7cc4a70091 Date: Mon, 14 Feb 2011 00:54:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: b68c00a17ab40f480a0c6f486f121cc5 commit: ac8a52948f107265718dabe97e144a7cc4a70091 Author: Brian Dolbec gmail com> AuthorDate: Mon Feb 14 00:47:14 2011 +0000 Commit: Brian Dolbec gmail com> CommitDate: Mon Feb 14 00:47:14 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3Dac8a5294 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 =20 from layman.config import BareConfig -#from layman.action import Sync =20 from layman.dbbase import UnknownOverlayException, UnknownOverlayMessage from layman.db import DB, RemoteDB @@ -320,7 +319,8 @@ class LaymanAPI(object): candidates =3D ' %s' % tuple(available_srcs)[0] else: plural =3D 's' - candidates =3D '\n'.join((' %d. %s' % (ovl + 1,= v)) for ovl, v in enumerate(available_srcs)) + candidates =3D '\n'.join((' %d. %s' % (ovl + 1,= v)) \ + for ovl, v in enumerate(available_srcs)) =20 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 =20 self.sync_results =3D (success, warnings, fatals) =20 - return True + return fatals !=3D [] =20 =20 def fetch_remote_list(self): From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PorVt-0004fq-Df for garchives@archives.gentoo.org; Mon, 14 Feb 2011 06:02:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EEF2AE09CB; Mon, 14 Feb 2011 06:00:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 6ABB2E09CB for ; Mon, 14 Feb 2011 06:00:34 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1CE991B423C for ; Mon, 14 Feb 2011 06:00:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 8A40F80072 for ; Mon, 14 Feb 2011 06:00:33 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: Subject: [gentoo-commits] proj/layman:master commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/api.py X-VCS-Directories: layman/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: ac8a52948f107265718dabe97e144a7cc4a70091 Date: Mon, 14 Feb 2011 06:00:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 282496879e9c8c1a614cbb6bba9ccb16 Message-ID: <20110214060033.vsRZd0rqJuTD73hOeME1L6RVBuavrpz_svTIBcafpTw@z> commit: ac8a52948f107265718dabe97e144a7cc4a70091 Author: Brian Dolbec gmail com> AuthorDate: Mon Feb 14 00:47:14 2011 +0000 Commit: Brian Dolbec gmail com> CommitDate: Mon Feb 14 00:47:14 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3Dac8a5294 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 =20 from layman.config import BareConfig -#from layman.action import Sync =20 from layman.dbbase import UnknownOverlayException, UnknownOverlayMessage from layman.db import DB, RemoteDB @@ -320,7 +319,8 @@ class LaymanAPI(object): candidates =3D ' %s' % tuple(available_srcs)[0] else: plural =3D 's' - candidates =3D '\n'.join((' %d. %s' % (ovl + 1,= v)) for ovl, v in enumerate(available_srcs)) + candidates =3D '\n'.join((' %d. %s' % (ovl + 1,= v)) \ + for ovl, v in enumerate(available_srcs)) =20 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 =20 self.sync_results =3D (success, warnings, fatals) =20 - return True + return fatals !=3D [] =20 =20 def fetch_remote_list(self):