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 1SM5fI-00010n-Da for garchives@archives.gentoo.org; Sun, 22 Apr 2012 22:53:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AEE08E09CE; Sun, 22 Apr 2012 22:53:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 7EA90E09CE for ; Sun, 22 Apr 2012 22:53:47 +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 E0B521B40EC for ; Sun, 22 Apr 2012 22:53:46 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id A5943E5402 for ; Sun, 22 Apr 2012 22:53:45 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1335135212.8975886e91c82164dbae9a44ca10c7284086386e.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/repoman/ X-VCS-Repository: proj/portage X-VCS-Files: pym/repoman/checks.py X-VCS-Directories: pym/repoman/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 8975886e91c82164dbae9a44ca10c7284086386e X-VCS-Branch: master Date: Sun, 22 Apr 2012 22:53: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: 8f21321d-eab4-4d09-ba2b-27ff6e25dbe6 X-Archives-Hash: 02613c45083651b0d7172c99a8400954 commit: 8975886e91c82164dbae9a44ca10c7284086386e Author: Zac Medico gentoo org> AuthorDate: Sun Apr 22 22:53:32 2012 +0000 Commit: Zac Medico gentoo org> CommitDate: Sun Apr 22 22:53:32 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D8975886e EapiDefinition: handle impossible %d % None --- pym/repoman/checks.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index c3d110f..af805d0 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -1,5 +1,5 @@ # repoman: Checks -# Copyright 2007, 2011 Gentoo Foundation +# Copyright 2007-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 =20 """This module contains functions used in Repoman to ascertain the quali= ty @@ -308,6 +308,9 @@ class EapiDefinition(LineCheck): def end(self): if self._parsed_eapi is None: if self._cached_eapi !=3D "0": + if self._eapi_line_num is None: + # This shouldn't be possible, but handle it anyway. + self._eapi_line_num =3D 1 yield "valid EAPI assignment must occur on or before line: %d" % \ self._eapi_line_num elif self._parsed_eapi !=3D self._cached_eapi: