aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2014-05-29 03:09:28 -0400
committerDevan Franchini <twitch153@gentoo.org>2014-06-12 17:11:50 -0400
commitf1e023c68411ac7319e163c66a41fcaf55193e1f (patch)
tree905a9e8cf10c387835a1b0bc22351cd2c1255127
parentapi.py: fixes success assignment in delete_repos() (diff)
downloadlayman-f1e023c68411ac7319e163c66a41fcaf55193e1f.tar.gz
layman-f1e023c68411ac7319e163c66a41fcaf55193e1f.tar.bz2
layman-f1e023c68411ac7319e163c66a41fcaf55193e1f.zip
api.py: fixes byte string output for update_news()
-rwxr-xr-xlayman/api.py2
1 files changed, 2 insertions, 0 deletions
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)