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-339709-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1QF2TA-0003Rs-Ke
	for garchives@archives.gentoo.org; Wed, 27 Apr 2011 10:59:44 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id E77B91C01E;
	Wed, 27 Apr 2011 10:58:42 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id B72A41C057
	for <gentoo-commits@lists.gentoo.org>; Wed, 27 Apr 2011 10:58:42 +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 EB0C41BC022
	for <gentoo-commits@lists.gentoo.org>; Wed, 27 Apr 2011 10:58:41 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by pelican.gentoo.org (Postfix) with ESMTP id EF07A8050D
	for <gentoo-commits@lists.gentoo.org>; Wed, 27 Apr 2011 10:58:40 +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: <e4cbd7af207a2f21df967a080af5bb61c6c782d7.dol-sen@gentoo>
Subject: [gentoo-commits] proj/layman:master commit in: layman/
X-VCS-Repository: proj/layman
X-VCS-Files: layman/api.py
X-VCS-Directories: layman/
X-VCS-Committer: dol-sen
X-VCS-Committer-Name: Brian Dolbec
X-VCS-Revision: e4cbd7af207a2f21df967a080af5bb61c6c782d7
Date: Wed, 27 Apr 2011 10:58:40 +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: 21cf2ed616d66a7dc3e7cc5870097cc7

commit:     e4cbd7af207a2f21df967a080af5bb61c6c782d7
Author:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
AuthorDate: Mon Feb 21 11:41:16 2011 +0000
Commit:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Thu Feb 24 06:49:58 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D=
commit;h=3De4cbd7af

set output's error callback to the api's _error().
update the overlay's info dictionary.

---
 layman/api.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/layman/api.py b/layman/api.py
index 8081bcb..75d0c10 100644
--- a/layman/api.py
+++ b/layman/api.py
@@ -53,6 +53,9 @@ class LaymanAPI(object):
=20
         self.report_errors =3D report_errors
=20
+        # add our error recording function to output
+        self.output.error_callback =3D self._error
+
         # get installed and available dbs
         self._installed_db =3D None
         self._installed_ids =3D None
@@ -204,6 +207,9 @@ class LaymanAPI(object):
                     'homepage': overlay.homepage,
                     'irc': overlay.irc,
                     'description': overlay.description,
+                    'feeds': overlay.feeds,
+                    'sources': [(e.src, e.type, e.subpath) \
+                        for e in overlay.sources],
                     #'src_uris': [e.src for e in overlay.sources],
                     'src_uris': overlay.source_uris(),
                     'src_types': overlay.source_types(),