diff options
author | Brian Dolbec <brian.dolbec@gmail.com> | 2011-02-21 03:41:16 -0800 |
---|---|---|
committer | Brian Dolbec <brian.dolbec@gmail.com> | 2011-02-23 22:49:58 -0800 |
commit | e4cbd7af207a2f21df967a080af5bb61c6c782d7 (patch) | |
tree | b93d919d02398927182f00adcd7182f7f3d09478 | |
parent | 89455e5de82d644e5b034642bacaac8338e8987a (diff) | |
download | layman-e4cbd7af207a2f21df967a080af5bb61c6c782d7.tar.gz layman-e4cbd7af207a2f21df967a080af5bb61c6c782d7.tar.bz2 layman-e4cbd7af207a2f21df967a080af5bb61c6c782d7.zip |
set output's error callback to the api's _error().
update the overlay's info dictionary.
-rw-r--r-- | 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): self.report_errors = report_errors + # add our error recording function to output + self.output.error_callback = self._error + # get installed and available dbs self._installed_db = None self._installed_ids = 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(), |