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 1ShkfF-0004I7-Pb for garchives@archives.gentoo.org; Thu, 21 Jun 2012 16:55:26 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B7B82E0AA5; Thu, 21 Jun 2012 16:55:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 87C70E0AA5 for ; Thu, 21 Jun 2012 16:55:05 +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 AA0D71B402F for ; Thu, 21 Jun 2012 16:55:04 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 72015E5435 for ; Thu, 21 Jun 2012 16:55:03 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1340297102.35da2e8aaccd1b1163016c861aa06fd53f4875a8.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/overlay/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/overlay/__init__.py roverlay/overlay/package.py X-VCS-Directories: roverlay/overlay/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 35da2e8aaccd1b1163016c861aa06fd53f4875a8 X-VCS-Branch: master Date: Thu, 21 Jun 2012 16:55:03 +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: e561e39e-4f01-4824-8e7f-f777f7d1536d X-Archives-Hash: bda022be40632cd89071568da7f1184a commit: 35da2e8aaccd1b1163016c861aa06fd53f4875a8 Author: Andr=C3=A9 Erdmann mailerd de> AuthorDate: Thu Jun 21 16:45:02 2012 +0000 Commit: Andr=C3=A9 Erdmann mailerd de> CommitDate: Thu Jun 21 16:45:02 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/R_overlay.git= ;a=3Dcommit;h=3D35da2e8a fixes in overlay/ modified: roverlay/overlay/__init__.py modified: roverlay/overlay/package.py --- roverlay/overlay/__init__.py | 10 +++++++++- roverlay/overlay/package.py | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/roverlay/overlay/__init__.py b/roverlay/overlay/__init__.py index 7e4bbea..dadf998 100644 --- a/roverlay/overlay/__init__.py +++ b/roverlay/overlay/__init__.py @@ -51,7 +51,15 @@ class Overlay ( object ): else: self.default_category =3D default_category =20 - self.eclass_files =3D eclass_files + + if eclass_files is None: + eclass_files =3D config.get ( 'OVERLAY.eclass_files', None ) + + if isinstance ( eclass_files, str ): + self.eclass_files =3D frozenset ( eclass_files ) + else: + self.eclass_files =3D eclass_files + =20 # self._profiles_dir =3D os.path.join ( self.physical_location, 'profile= s' ) diff --git a/roverlay/overlay/package.py b/roverlay/overlay/package.py index 3138779..b571ad9 100644 --- a/roverlay/overlay/package.py +++ b/roverlay/overlay/package.py @@ -218,7 +218,7 @@ class PackageDir ( object ): self.name, shortver ) if SUPPRESS_EXCEPTIONS: - logger.warning ( msg ) + self.logger.warning ( msg ) else: raise Exception ( msg ) =20