aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-10-23 20:03:27 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2023-10-23 20:03:27 +0300
commit2f939c3e9366a4c8858892c5252b23e2f08d2447 (patch)
tree43be12aa74235744728d38c6ece04b86e6e54fb4
parentexamples/verify_at_done: add new helper tool to collect done AT bugs (diff)
downloadpkgcore-2f939c3e9366a4c8858892c5252b23e2f08d2447.tar.gz
pkgcore-2f939c3e9366a4c8858892c5252b23e2f08d2447.tar.bz2
pkgcore-2f939c3e9366a4c8858892c5252b23e2f08d2447.zip
eclassdoc: remove @BUGREPORTS tag
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r--src/pkgcore/ebuild/eclass.py9
-rw-r--r--tests/ebuild/test_eclass.py3
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 <another@random.email>
# Random Person <maintainer@random.email>
-# @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 <another@random.email>",
"Random Person <maintainer@random.email>",
)
- assert doc.bugreports == "::\n\n Report bugs somewhere."
assert doc.description == (
"::\n\n"
" Yadda yadda yadda.\n"