From 009d0632ae496197807d520df380017dca664543 Mon Sep 17 00:00:00 2001 From: dol-sen Date: Sat, 6 Aug 2011 23:39:34 -0700 Subject: clean out some dead commented out code. add a blank line after each action task for spacing tasks. --- layman/cli.py | 29 ++++++++++++++++------------- 1 file 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 = self.api.fetch_remote_list() if result: self.output.info('Fetch Ok', 2) - #else: - # errors = self.api.get_errors() - # self.output.warn('Download failed.\nError was: ' - # + str('\n'.join(errors)), 2) + # blank newline -- no " *" + self.output.notice('') return result @@ -237,10 +235,8 @@ class Main(object): if result: self.output.info('Successfully added overlay(s) '+\ ', '.join(selection) +'.', 2) - #else: - # errors = 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 @@ -254,7 +250,10 @@ class Main(object): if self.config['sync_all'] or 'ALL' in selection: selection = self.api.get_installed() self.output.debug('Updating selected overlays', 6) - return self.api.sync(selection) + result = self.api.sync(selection) + # blank newline -- no " *" + self.output.notice('') + return result def Delete(self): @@ -268,10 +267,8 @@ class Main(object): if result: self.output.info('Successfully deleted overlay(s) ' +\ ', '.join(selection) + '.', 2) - #else: - # errors = 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 @@ -288,6 +285,8 @@ class Main(object): info = self.api.get_info_str(selection, local=False, verbose=True, width=list_printer.width) list_printer.print_shortdict(info, complain=_complain) + # blank newline -- no " *" + self.output.notice('') return info != {} @@ -302,6 +301,8 @@ class Main(object): info = self.api.get_info_list(local=False, verbose=self.config['verbose'], width=list_printer.width) list_printer.print_shortlist(info, complain=_complain) + # blank newline -- no " *" + self.output.notice('') return info != {} @@ -324,6 +325,8 @@ class Main(object): #info = self.api.get_all_info(self.api.get_installed(), local=True) #list_printer.print_fulldict(info, complain=_complain) + # blank newline -- no " *" + self.output.notice('') return info != {} -- cgit v1.2.3-1-g7c22