From 2f939c3e9366a4c8858892c5252b23e2f08d2447 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Mon, 23 Oct 2023 20:03:27 +0300 Subject: eclassdoc: remove @BUGREPORTS tag Signed-off-by: Arthur Zamarin --- src/pkgcore/ebuild/eclass.py | 9 ++++----- tests/ebuild/test_eclass.py | 3 --- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/pkgcore/ebuild/eclass.py b/src/pkgcore/ebuild/eclass.py index 66e07766..4612d0b3 100644 --- a/src/pkgcore/ebuild/eclass.py +++ b/src/pkgcore/ebuild/eclass.py @@ -218,7 +218,6 @@ class EclassBlock(ParseEclassDoc): "@PROVIDES:": ("raw_provides", False, self._tag_inline_list, ()), "@MAINTAINER:": ("maintainers", True, self._tag_multiline_args, None), "@AUTHOR:": ("authors", False, self._tag_multiline_args, None), - "@BUGREPORTS:": ("bugreports", False, self._tag_multiline_str, None), "@DESCRIPTION:": ("description", False, self._tag_multiline_str, None), "@EXAMPLE:": ("example", False, self._tag_multiline_str, None), "@SUPPORTED_EAPIS:": ("supported_eapis", False, self._supported_eapis, ()), @@ -642,10 +641,10 @@ class EclassDoc(AttrDict): rst.extend(_rst_header("-", "Maintainers")) rst.append("\n".join(f"| {x}" for x in self.maintainers)) rst.append("") - if self.bugreports: - rst.extend(_rst_header("-", "Bug Reports")) - rst.append(self.bugreports) - rst.append("") + + rst.extend(_rst_header("-", "Reporting Bugs")) + rst.append("Please report bugs via https://bugs.gentoo.org/") + rst.append("") return "\n".join(rst) diff --git a/tests/ebuild/test_eclass.py b/tests/ebuild/test_eclass.py index 56bf2ec3..045261f3 100644 --- a/tests/ebuild/test_eclass.py +++ b/tests/ebuild/test_eclass.py @@ -38,8 +38,6 @@ FOO_ECLASS = """ # @AUTHOR: # Another Person # Random Person -# @BUGREPORTS: -# Report bugs somewhere. # @VCSURL: https://example.com/foo.eclass # @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7 # @PROVIDES: bar @@ -124,7 +122,6 @@ class TestEclassDoc: "Another Person ", "Random Person ", ) - assert doc.bugreports == "::\n\n Report bugs somewhere." assert doc.description == ( "::\n\n" " Yadda yadda yadda.\n" -- cgit v1.2.3-65-gdbad