1 |
commit: 94472883f86338c8c877bfc3af57d4d6815915ed |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 30 09:01:24 2016 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 30 09:01:24 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=94472883 |
7 |
|
8 |
repoman/modules/.../ebuild.py: Add InvalidPackageName exception trap bug 581598 |
9 |
|
10 |
This adds the "ebuild.invalidname" qa notice for the ebuild. |
11 |
|
12 |
X-Gentoo-bug: 581598 |
13 |
X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=581598 |
14 |
|
15 |
pym/repoman/modules/scan/ebuild/ebuild.py | 5 +++++ |
16 |
1 file changed, 5 insertions(+) |
17 |
|
18 |
diff --git a/pym/repoman/modules/scan/ebuild/ebuild.py b/pym/repoman/modules/scan/ebuild/ebuild.py |
19 |
index 7b31fcd..28cb8b4 100644 |
20 |
--- a/pym/repoman/modules/scan/ebuild/ebuild.py |
21 |
+++ b/pym/repoman/modules/scan/ebuild/ebuild.py |
22 |
@@ -14,6 +14,7 @@ from repoman.qa_data import no_exec, allvars |
23 |
from repoman._portage import portage |
24 |
from portage import os |
25 |
from portage.const import LIVE_ECLASSES |
26 |
+from portage.exception import InvalidPackageName |
27 |
|
28 |
pv_toolong_re = re.compile(r'[0-9]{19,}') |
29 |
|
30 |
@@ -200,6 +201,10 @@ class Ebuild(ScanBase): |
31 |
fuse.set(False, ignore_InvalidState=True) |
32 |
self.qatracker.add_error("ebuild.output", os.path.join(xpkg, y)) |
33 |
continue |
34 |
+ except InvalidPackageName: |
35 |
+ fuse.set(False, ignore_InvalidState=True) |
36 |
+ self.qatracker.add_error("ebuild.invalidname", os.path.join(xpkg, y)) |
37 |
+ continue |
38 |
if not portage.eapi_is_supported(myaux["EAPI"]): |
39 |
fuse.set(False, ignore_InvalidState=True) |
40 |
self.qatracker.add_error("EAPI.unsupported", os.path.join(xpkg, y)) |