From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SbaXd-00067G-Tj for garchives@archives.gentoo.org; Mon, 04 Jun 2012 16:54:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1609AE0654; Mon, 4 Jun 2012 16:16:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8EC7DE0654 for ; Mon, 4 Jun 2012 16:16:54 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4B41E1B4059 for ; Mon, 4 Jun 2012 16:16:46 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 0D01CE5404 for ; Mon, 4 Jun 2012 16:16:45 +0000 (UTC) From: "Slava Bacherikov" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Slava Bacherikov" Message-ID: <1338826033.fdf39f15710d6bf978ed97ffe0fc80404cf5448c.bacher09@gentoo> Subject: [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/libs/ X-VCS-Repository: proj/gentoo-packages X-VCS-Files: gpackages/libs/porttree.py X-VCS-Directories: gpackages/libs/ X-VCS-Committer: bacher09 X-VCS-Committer-Name: Slava Bacherikov X-VCS-Revision: fdf39f15710d6bf978ed97ffe0fc80404cf5448c X-VCS-Branch: master Date: Mon, 4 Jun 2012 16:16:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: c034de03-e9be-4fc4-a782-3b3b1f313236 X-Archives-Hash: 112bc31d31c3676449e1318fd6d2d368 commit: fdf39f15710d6bf978ed97ffe0fc80404cf5448c Author: Slava Bacherikov bacher09 org> AuthorDate: Mon Jun 4 16:07:13 2012 +0000 Commit: Slava Bacherikov bacherikov org ua> CommitDate: Mon Jun 4 16:07:13 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoo-packag= es.git;a=3Dcommit;h=3Dfdf39f15 Check if category exists in repo. --- gpackages/libs/porttree.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/gpackages/libs/porttree.py b/gpackages/libs/porttree.py index e1a7dcc..9b5bb9b 100644 --- a/gpackages/libs/porttree.py +++ b/gpackages/libs/porttree.py @@ -111,7 +111,8 @@ class PortTree(ToStrMixin): =20 def iter_categories(self): for category in sorted(PORTDB.settings.categories): - yield Category(self, category) + if os.path.isdir(os.path.join(self.porttree_path, category))= : + yield Category(self, category) =20 def iter_packages(self): for category in self.iter_categories():