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 1QpxX7-0005Fm-4c for garchives@archives.gentoo.org; Sun, 07 Aug 2011 07:12:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C27021C0B0; Sun, 7 Aug 2011 07:12:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 5BD1321C0B0 for ; Sun, 7 Aug 2011 07:12:16 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9E9C31B4042 for ; Sun, 7 Aug 2011 07:12:15 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id EE17480043 for ; Sun, 7 Aug 2011 07:12:14 +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: <009d0632ae496197807d520df380017dca664543.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: 009d0632ae496197807d520df380017dca664543 Date: Sun, 7 Aug 2011 07:12:14 +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: 2726cd11a5013e75269605858ca2d107 commit: 009d0632ae496197807d520df380017dca664543 Author: dol-sen gmail com> AuthorDate: Sun Aug 7 06:39:34 2011 +0000 Commit: Brian Dolbec gmail com> CommitDate: Sun Aug 7 06:39:34 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3D009d0632 clean out some dead commented out code. add a blank line after each actio= n task for spacing tasks. --- layman/cli.py | 29 ++++++++++++++++------------- 1 files changed, 16 insertions(+), 13 deletions(-) diff --git a/layman/cli.py b/layman/cli.py index 9690e54..5c1b0a6 100644 --- a/layman/cli.py +++ b/layman/cli.py @@ -218,10 +218,8 @@ class Main(object): result =3D self.api.fetch_remote_list() if result: self.output.info('Fetch Ok', 2) - #else: - # errors =3D self.api.get_errors() - # self.output.warn('Download failed.\nError was: ' - # + str('\n'.join(errors)), 2) + # blank newline -- no " *" + self.output.notice('') return result =20 =20 @@ -237,10 +235,8 @@ class Main(object): 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) + # blank newline -- no " *" + self.output.notice('') return result =20 =20 @@ -254,7 +250,10 @@ class Main(object): if self.config['sync_all'] or 'ALL' in selection: selection =3D self.api.get_installed() self.output.debug('Updating selected overlays', 6) - return self.api.sync(selection) + result =3D self.api.sync(selection) + # blank newline -- no " *" + self.output.notice('') + return result =20 =20 def Delete(self): @@ -268,10 +267,8 @@ class Main(object): 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) + # blank newline -- no " *" + self.output.notice('') return result =20 =20 @@ -288,6 +285,8 @@ class Main(object): info =3D self.api.get_info_str(selection, local=3DFalse, verbose=3DTrue, width=3Dlist_printer.width) list_printer.print_shortdict(info, complain=3D_complain) + # blank newline -- no " *" + self.output.notice('') return info !=3D {} =20 =20 @@ -302,6 +301,8 @@ class Main(object): info =3D self.api.get_info_list(local=3DFalse, verbose=3Dself.config['verbose'], width=3Dlist_printer.width= ) list_printer.print_shortlist(info, complain=3D_complain) + # blank newline -- no " *" + self.output.notice('') =20 return info !=3D {} =20 @@ -324,6 +325,8 @@ class Main(object): #info =3D self.api.get_all_info(self.api.get_installed(), local=3D= True) #list_printer.print_fulldict(info, complain=3D_complain) =20 + # blank newline -- no " *" + self.output.notice('') return info !=3D {} =20 =20