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 1QqAn0-0006H1-PL for garchives@archives.gentoo.org; Sun, 07 Aug 2011 21:21:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0FC2221C04E; Sun, 7 Aug 2011 21:21:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id D745521C04E for ; Sun, 7 Aug 2011 21:21:33 +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 45CE11B4007 for ; Sun, 7 Aug 2011 21:21:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 67B2380040 for ; Sun, 7 Aug 2011 21:21:32 +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 layman/cli.py layman/db.py X-VCS-Directories: layman/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: b2ee5463687471c42b87831f77de3322ec83e1f9 Date: Sun, 7 Aug 2011 21:21:32 +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: 5cdb46b62648f50a815dbd7870f1263b commit: b2ee5463687471c42b87831f77de3322ec83e1f9 Author: dol-sen gmail com> AuthorDate: Sun Aug 7 21:20:02 2011 +0000 Commit: Brian Dolbec gmail com> CommitDate: Sun Aug 7 21:20:02 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3Db2ee5463 fix bug 378097. unofficial installed overlays not printing (due to nochec= k=3Dno option). Add some additional debug output --- layman/api.py | 2 ++ layman/cli.py | 6 +++--- 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 =3D DB(self.config) + self.output.debug("API._get_installed_db; len(installed) =3D %s,= %s" + %(len(self._installed_db.list_ids()), self._installed_db.lis= t_ids()), 5) return self._installed_db =20 =20 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) =20 def print_shortlist(self, info, complain): - #print("ListPrinter.print_shortlist()",info) for summary, supported, official in info: self.print_overlay(summary, supported, official, complain) =20 @@ -316,12 +315,13 @@ class Main(object): self.output.debug('Printing installed overlays.', 6) list_printer =3D ListPrinter(self.config) =20 - _complain =3D self.config['nocheck'] or self.config['verbose'] # # fast way info =3D self.api.get_info_list(verbose=3Dself.config['verbose']= , width=3Dlist_printer.width) - list_printer.print_shortlist(info, complain=3D_complain) + #self.output.debug('CLI: ListLocal() info =3D %s' % len(info), 4= ) + #self.output.debug('\n'.join([ str(x) for x in info]), 4) + list_printer.print_shortlist(info, complain=3DTrue) # # slow way #info =3D self.api.get_all_info(self.api.get_installed(), local=3D= 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 =3D config['output'] =20 self.path =3D config['local_list'] + self.output.debug("DB.__init__(): config['local_list'] =3D %s" %= self.path, 3) =20 if config['nocheck']: ignore =3D 2