1 |
commit: e4cbd7af207a2f21df967a080af5bb61c6c782d7 |
2 |
Author: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Feb 21 11:41:16 2011 +0000 |
4 |
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
5 |
CommitDate: Thu Feb 24 06:49:58 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=e4cbd7af |
7 |
|
8 |
set output's error callback to the api's _error(). |
9 |
update the overlay's info dictionary. |
10 |
|
11 |
--- |
12 |
layman/api.py | 6 ++++++ |
13 |
1 files changed, 6 insertions(+), 0 deletions(-) |
14 |
|
15 |
diff --git a/layman/api.py b/layman/api.py |
16 |
index 8081bcb..75d0c10 100644 |
17 |
--- a/layman/api.py |
18 |
+++ b/layman/api.py |
19 |
@@ -53,6 +53,9 @@ class LaymanAPI(object): |
20 |
|
21 |
self.report_errors = report_errors |
22 |
|
23 |
+ # add our error recording function to output |
24 |
+ self.output.error_callback = self._error |
25 |
+ |
26 |
# get installed and available dbs |
27 |
self._installed_db = None |
28 |
self._installed_ids = None |
29 |
@@ -204,6 +207,9 @@ class LaymanAPI(object): |
30 |
'homepage': overlay.homepage, |
31 |
'irc': overlay.irc, |
32 |
'description': overlay.description, |
33 |
+ 'feeds': overlay.feeds, |
34 |
+ 'sources': [(e.src, e.type, e.subpath) \ |
35 |
+ for e in overlay.sources], |
36 |
#'src_uris': [e.src for e in overlay.sources], |
37 |
'src_uris': overlay.source_uris(), |
38 |
'src_types': overlay.source_types(), |