From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id ED1E913877A for ; Mon, 16 Jun 2014 03:37:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E0A39E0BB2; Mon, 16 Jun 2014 03:37:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7F868E0B9C for ; Mon, 16 Jun 2014 03:37:32 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D615133FF91 for ; Mon, 16 Jun 2014 03:37:30 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id D8854187F5 for ; Mon, 16 Jun 2014 03:37:28 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1402607510.f1e023c68411ac7319e163c66a41fcaf55193e1f.dol-sen@gentoo> Subject: [gentoo-commits] proj/layman:gsoc2014 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: f1e023c68411ac7319e163c66a41fcaf55193e1f X-VCS-Branch: gsoc2014 Date: Mon, 16 Jun 2014 03:37:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c8d2deeb-090e-4df8-b12e-88783f379a41 X-Archives-Hash: 83d0456f31998bce978839233fe22100 commit: f1e023c68411ac7319e163c66a41fcaf55193e1f Author: Devan Franchini gentoo org> AuthorDate: Thu May 29 07:09:28 2014 +0000 Commit: Brian Dolbec gmail 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) From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B6B3913877A for ; Mon, 16 Jun 2014 03:40:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3AEF0E0BCB; Mon, 16 Jun 2014 03:40:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 38D13E0B52 for ; Mon, 16 Jun 2014 03:40:22 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 90BEC33FD38 for ; Mon, 16 Jun 2014 03:40:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 9DA8D187F5 for ; Mon, 16 Jun 2014 03:40:18 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1402607510.f1e023c68411ac7319e163c66a41fcaf55193e1f.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: f1e023c68411ac7319e163c66a41fcaf55193e1f X-VCS-Branch: master Date: Mon, 16 Jun 2014 03:40:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a41d4d78-ce12-4432-a1e5-9bcefcdde51c X-Archives-Hash: 30e232a53b095613111f5662bf3ab371 Message-ID: <20140616034018.l15xgr75lvrQ669UtFCHrES8zjSNq4nNEv6csRb5xKU@z> commit: f1e023c68411ac7319e163c66a41fcaf55193e1f Author: Devan Franchini gentoo org> AuthorDate: Thu May 29 07:09:28 2014 +0000 Commit: Brian Dolbec gmail 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)