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 <gentoo-commits+bounces-316508-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1PorX8-00056h-Bg
	for garchives@archives.gentoo.org; Mon, 14 Feb 2011 06:03:38 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 8F7A8E09BA;
	Mon, 14 Feb 2011 06:00:31 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 5E5EFE09BA
	for <gentoo-commits@lists.gentoo.org>; Mon, 14 Feb 2011 06:00:31 +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 099211B4221
	for <gentoo-commits@lists.gentoo.org>; Mon, 14 Feb 2011 06:00:31 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by pelican.gentoo.org (Postfix) with ESMTP id 74BDB8006A
	for <gentoo-commits@lists.gentoo.org>; Mon, 14 Feb 2011 06:00:30 +0000 (UTC)
From: "Brian Dolbec" <brian.dolbec@gmail.com>
To: gentoo-commits@lists.gentoo.org
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" <brian.dolbec@gmail.com>
Message-ID: <3da3a059d7e0c251e457a3b803752dd517acf726.dol-sen@gentoo>
Subject: [gentoo-commits] proj/layman:master commit in: layman/
X-VCS-Repository: proj/layman
X-VCS-Files: layman/cli.py
X-VCS-Directories: layman/
X-VCS-Committer: dol-sen
X-VCS-Committer-Name: Brian Dolbec
X-VCS-Revision: 3da3a059d7e0c251e457a3b803752dd517acf726
Date: Mon, 14 Feb 2011 06:00:30 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 
X-Archives-Hash: 9213037397c443c7baafdbd8b62626ea

commit:     3da3a059d7e0c251e457a3b803752dd517acf726
Author:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
AuthorDate: Tue Jan 18 04:06:37 2011 +0000
Commit:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Sun Feb 13 03:48:34 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D=
commit;h=3D3da3a059

add missing output messages

---
 layman/cli.py |   23 ++++++++++++++++++++---
 1 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/layman/cli.py b/layman/cli.py
index b273c89..29b6989 100644
--- a/layman/cli.py
+++ b/layman/cli.py
@@ -79,7 +79,7 @@ class ListPrinter(object):
         if supported:
             # Is this an official overlay?
             if official:
-                 self.output.info(summary, 1)
+                self.output.info(summary, 1)
             # Unofficial overlays will only be listed if we are not
             # checking or listing verbose
             elif complain:
@@ -197,7 +197,16 @@ class Main(object):
         if 'ALL' in selection:
             selection =3D self.api.get_available()
         self.output.debug('Adding selected overlays', 6)
-        return self.api.add_repos(selection)
+        result =3D self.api.add_repos(selection)
+        if result:
+            self.output.info('Successfully added overlay(s) '+\
+                ', '.join(selection) +'.', 2)
+        else:
+            errors =3D self.api.get_errors()
+            self.output.warn('Failed to add overlay(s).\nError was: '
+                             + str('\n'.join(errors)), 2)
+        return result
+
=20
=20
     def Sync(self):
@@ -217,7 +226,15 @@ class Main(object):
         if 'ALL' in selection:
             selection =3D self.api.get_installed()
         self.output.debug('Deleting selected overlays', 6)
-        return self.api.delete_repos(selection)
+        result =3D self.api.delete_repos(selection)
+        if result:
+            self.output.info('Successfully deleted overlay(s) ' +\
+                ', '.join(selection) + '.', 2)
+        else:
+            errors =3D self.api.get_errors()
+            self.output.warn('Failed to delete overlay(s).\nError was: '
+                             + str('\n'.join(errors)), 2)
+        return result
=20
=20
     def Info(self):