From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-879533-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 0D88E138226
	for <garchives@archives.gentoo.org>; Tue,  3 May 2016 06:11:37 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 8501EE087B;
	Tue,  3 May 2016 06:11:34 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id DD745E087A
	for <gentoo-commits@lists.gentoo.org>; Tue,  3 May 2016 06:11:33 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id C4EAC3409B7
	for <gentoo-commits@lists.gentoo.org>; Tue,  3 May 2016 06:11:32 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 2B526342
	for <gentoo-commits@lists.gentoo.org>; Tue,  3 May 2016 06:11:29 +0000 (UTC)
From: "Brian Dolbec" <dolsen@gentoo.org>
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" <dolsen@gentoo.org>
Message-ID: <1462006884.94472883f86338c8c877bfc3af57d4d6815915ed.dolsen@gentoo>
Subject: [gentoo-commits] proj/portage:repoman commit in: pym/repoman/modules/scan/ebuild/
X-VCS-Repository: proj/portage
X-VCS-Files: pym/repoman/modules/scan/ebuild/ebuild.py
X-VCS-Directories: pym/repoman/modules/scan/ebuild/
X-VCS-Committer: dolsen
X-VCS-Committer-Name: Brian Dolbec
X-VCS-Revision: 94472883f86338c8c877bfc3af57d4d6815915ed
X-VCS-Branch: repoman
Date: Tue,  3 May 2016 06:11:29 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 4013e31d-bd2c-4c51-b6a2-cf9fa7d40288
X-Archives-Hash: 715ccf7154061e2a2852d2b0dbb6f0d4
Message-ID: <20160503061129.Qqg0mM1hCbqGY3wrUqcyA3W-FUUpUEecDpPkDWji20I@z>

commit:     94472883f86338c8c877bfc3af57d4d6815915ed
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 30 09:01:24 2016 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Sat Apr 30 09:01:24 2016 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=94472883

repoman/modules/.../ebuild.py: Add InvalidPackageName exception trap bug 581598 

This adds the "ebuild.invalidname" qa notice for the ebuild.

X-Gentoo-bug: 581598
X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=581598

 pym/repoman/modules/scan/ebuild/ebuild.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pym/repoman/modules/scan/ebuild/ebuild.py b/pym/repoman/modules/scan/ebuild/ebuild.py
index 7b31fcd..28cb8b4 100644
--- a/pym/repoman/modules/scan/ebuild/ebuild.py
+++ b/pym/repoman/modules/scan/ebuild/ebuild.py
@@ -14,6 +14,7 @@ from repoman.qa_data import no_exec, allvars
 from repoman._portage import portage
 from portage import os
 from portage.const import LIVE_ECLASSES
+from portage.exception import InvalidPackageName
 
 pv_toolong_re = re.compile(r'[0-9]{19,}')
 
@@ -200,6 +201,10 @@ class Ebuild(ScanBase):
 					fuse.set(False, ignore_InvalidState=True)
 					self.qatracker.add_error("ebuild.output", os.path.join(xpkg, y))
 					continue
+				except InvalidPackageName:
+					fuse.set(False, ignore_InvalidState=True)
+					self.qatracker.add_error("ebuild.invalidname", os.path.join(xpkg, y))
+					continue
 				if not portage.eapi_is_supported(myaux["EAPI"]):
 					fuse.set(False, ignore_InvalidState=True)
 					self.qatracker.add_error("EAPI.unsupported", os.path.join(xpkg, y))