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 1QMZB3-0004OU-9M for garchives@archives.gentoo.org; Wed, 18 May 2011 05:20:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 040AC1C0F4; Wed, 18 May 2011 05:19:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C6F631C0F4 for ; Wed, 18 May 2011 05:19:51 +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 42E131B402E for ; Wed, 18 May 2011 05:19:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id AE37345973 for ; Wed, 18 May 2011 05:19:50 +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: c0fff99f7ae0168900eeea30dc27fc240caa9240 Date: Wed, 18 May 2011 05:19:50 +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: 490a16fb8a4515d88ff65256ff2d0f23 commit: c0fff99f7ae0168900eeea30dc27fc240caa9240 Author: dol-sen gmail com> AuthorDate: Wed May 18 05:19:39 2011 +0000 Commit: Brian Dolbec gmail com> CommitDate: Wed May 18 05:19:39 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3Dc0fff99f fix the success result when adding already installed overlays --- layman/api.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/layman/api.py b/layman/api.py index 30f850c..8e54d7d 100644 --- a/layman/api.py +++ b/layman/api.py @@ -111,7 +111,7 @@ class LaymanAPI(object): results =3D [] for ovl in repos: if not self.is_installed(ovl): - self._error("Repository '"+ovl+"': was not installed") + self._error("Repository '"+ovl+"' was not installed") results.append(False) continue try: @@ -140,7 +140,8 @@ class LaymanAPI(object): results =3D [] for ovl in repos: if self.is_installed(ovl): - results.append(True) + self._error("Repository '"+ovl+"' was already installed"= ) + results.append(False) continue if not self.is_repo(ovl): self._error(UnknownOverlayMessage(ovl))