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 1SfFRi-0003OR-KC for garchives@archives.gentoo.org; Thu, 14 Jun 2012 19:11:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E143DE0509; Thu, 14 Jun 2012 19:10:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B69DFE0509 for ; Thu, 14 Jun 2012 19:10:58 +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 7F5701B4050 for ; Thu, 14 Jun 2012 19:10:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 468DDE5430 for ; Thu, 14 Jun 2012 19:10:56 +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: <1339697642.0d1cacdb7f1b863dba7c7110aaf03e59c3169f7f.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: 0d1cacdb7f1b863dba7c7110aaf03e59c3169f7f X-VCS-Branch: master Date: Thu, 14 Jun 2012 19:10:56 +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: f58236b7-3dce-4ec2-a6ea-d1d2db79b9c5 X-Archives-Hash: b813f4fecc433da992bdd28d28118100 commit: 0d1cacdb7f1b863dba7c7110aaf03e59c3169f7f Author: Slava Bacherikov bacher09 org> AuthorDate: Thu Jun 14 18:14:02 2012 +0000 Commit: Slava Bacherikov bacherikov org ua> CommitDate: Thu Jun 14 18:14:02 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoo-packag= es.git;a=3Dcommit;h=3D0d1cacdb Fix bug in categories metadata --- gpackages/libs/porttree.py | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gpackages/libs/porttree.py b/gpackages/libs/porttree.py index c33c159..0e4f352 100644 --- a/gpackages/libs/porttree.py +++ b/gpackages/libs/porttree.py @@ -275,9 +275,13 @@ class CategoryMetadata(ToStrMixin): =20 def __init__(self, metadata_path): self._metadata_path =3D metadata_path - self._metadata_xml =3D etree.parse(metadata_path) self._descrs =3D {} - self._parse_descrs() + try: + self._metadata_xml =3D etree.parse(metadata_path) + except IOError: + pass + else: + self._parse_descrs() =20 def _parse_descrs(self): for descr_xml in self._metadata_xml.iterfind('longdescription'):