diff options
author | dol-sen <brian.dolbec@gmail.com> | 2011-08-07 14:20:02 -0700 |
---|---|---|
committer | dol-sen <brian.dolbec@gmail.com> | 2011-08-07 14:20:02 -0700 |
commit | b2ee5463687471c42b87831f77de3322ec83e1f9 (patch) | |
tree | 4ea0060d6427f0cae3269bfd20f93513efe1c6cb | |
parent | run "svn cleanup..." for keyboard interrupts, bug 377035 (diff) | |
download | layman-b2ee5463687471c42b87831f77de3322ec83e1f9.tar.gz layman-b2ee5463687471c42b87831f77de3322ec83e1f9.tar.bz2 layman-b2ee5463687471c42b87831f77de3322ec83e1f9.zip |
fix bug 378097. unofficial installed overlays not printing (due to nocheck=no option). Add some additional debug output
-rwxr-xr-x | layman/api.py | 2 | ||||
-rw-r--r-- | layman/cli.py | 6 | ||||
-rw-r--r-- | layman/db.py | 1 |
3 files changed, 6 insertions, 3 deletions
diff --git a/layman/api.py b/layman/api.py index e85f5ee..69baddd 100755 --- a/layman/api.py +++ b/layman/api.py @@ -479,6 +479,8 @@ class LaymanAPI(object): """returns the list of installed overlays""" if not self._installed_db or dbreload: self._installed_db = DB(self.config) + self.output.debug("API._get_installed_db; len(installed) = %s, %s" + %(len(self._installed_db.list_ids()), self._installed_db.list_ids()), 5) return self._installed_db diff --git a/layman/cli.py b/layman/cli.py index 396cadc..fde52c3 100644 --- a/layman/cli.py +++ b/layman/cli.py @@ -60,7 +60,6 @@ class ListPrinter(object): self.print_overlay(summary, supported, official, complain) def print_shortlist(self, info, complain): - #print("ListPrinter.print_shortlist()",info) for summary, supported, official in info: self.print_overlay(summary, supported, official, complain) @@ -316,12 +315,13 @@ class Main(object): self.output.debug('Printing installed overlays.', 6) list_printer = ListPrinter(self.config) - _complain = self.config['nocheck'] or self.config['verbose'] # # fast way info = self.api.get_info_list(verbose=self.config['verbose'], width=list_printer.width) - list_printer.print_shortlist(info, complain=_complain) + #self.output.debug('CLI: ListLocal() info = %s' % len(info), 4) + #self.output.debug('\n'.join([ str(x) for x in info]), 4) + list_printer.print_shortlist(info, complain=True) # # slow way #info = self.api.get_all_info(self.api.get_installed(), local=True) diff --git a/layman/db.py b/layman/db.py index 64b54ce..05da83d 100644 --- a/layman/db.py +++ b/layman/db.py @@ -50,6 +50,7 @@ class DB(DbBase): self.output = config['output'] self.path = config['local_list'] + self.output.debug("DB.__init__(): config['local_list'] = %s" % self.path, 3) if config['nocheck']: ignore = 2 |