commit: f1e023c68411ac7319e163c66a41fcaf55193e1f Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org> AuthorDate: Thu May 29 07:09:28 2014 +0000 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> CommitDate: Thu Jun 12 21:11:50 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=f1e023c6
api.py: fixes byte string output for update_news() --- layman/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layman/api.py b/layman/api.py index 041b737..d9d3eb1 100755 --- a/layman/api.py +++ b/layman/api.py @@ -639,6 +639,8 @@ class LaymanAPI(object): # because it may be different than layman's name for it repo_names = [] for repo in repos: + if isinstance(repo, bytes): + repo = repo.decode('UTF-8') ovl = self._get_installed_db().select(repo) ovl_path = os.path.join(ovl.config['storage'], repo) name = portdb.getRepositoryName(ovl_path)