From: "Brian Dolbec" <dolsen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:repoman commit in: pym/repoman/modules/scan/ebuild/
Date: Tue, 3 May 2016 06:11:29 +0000 (UTC) [thread overview]
Message-ID: <1462006884.94472883f86338c8c877bfc3af57d4d6815915ed.dolsen@gentoo> (raw)
Message-ID: <20160503061129.Qqg0mM1hCbqGY3wrUqcyA3W-FUUpUEecDpPkDWji20I@z> (raw)
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))
next reply other threads:[~2016-05-03 6:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-30 9:13 Brian Dolbec [this message]
2016-05-03 6:11 ` [gentoo-commits] proj/portage:repoman commit in: pym/repoman/modules/scan/ebuild/ Brian Dolbec
-- strict thread matches above, loose matches on Subject: below --
2016-05-15 23:51 [gentoo-commits] proj/portage:master " Brian Dolbec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1462006884.94472883f86338c8c877bfc3af57d4d6815915ed.dolsen@gentoo \
--to=dolsen@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox