commit: af7a9cb899d8f0451e2249efb505c3f95c5f81c0
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 14 04:03:18 2015 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Fri Aug 14 04:05:35 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af7a9cb8
app-portage/eclass-manpages: add a check for the @ECLASS name #537392
app-portage/eclass-manpages/files/eclass-to-manpage.awk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/app-portage/eclass-manpages/files/eclass-to-manpage.awk
b/app-portage/eclass-manpages/files/eclass-to-manpage.awk
index 11ece1f..ee42810 100644
--- a/app-portage/eclass-manpages/files/eclass-to-manpage.awk
+++ b/app-portage/eclass-manpages/files/eclass-to-manpage.awk
@@ -145,6 +145,10 @@ function handle_eclass() {
desc = ""
example = ""
+ # Sanity check the eclass name. #537392
+ if (eclass !~ /[.]eclass$/)
+ fail(eclass ": @ECLASS name is missing a '.eclass' suffix")
+
# first the man page header
print ".\\\" -*- coding: utf-8 -*-"
print ".\\\" ### DO NOT EDIT THIS FILE"