commit:     01b68ca982ce815c46330b9fabf2aefb7fd965b6
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 29 18:45:23 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Oct 29 18:45:23 2022 +0000
URL:        
https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=01b68ca9

PythonGHDistfileSuffix: add common solution to docs

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 src/pkgcheck/checks/python.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/pkgcheck/checks/python.py b/src/pkgcheck/checks/python.py
index fc9a58e7..5d6a8a1a 100644
--- a/src/pkgcheck/checks/python.py
+++ b/src/pkgcheck/checks/python.py
@@ -621,6 +621,10 @@ class PythonGHDistfileSuffix(results.VersionResult, 
results.Warning):
     published on PyPI.  Since both kinds of distfiles often have the same name,
     ".gh.tar.gz" suffix is often used for the former to avoid filename
     collisions with official archives published upstream.
+
+    To solve this warning, rename the distfile in ``SRC_URI`` to include the
+    suffix. There is no need to contact upstream, as it is done simply by
+    adding ``-> ${P}.gh.tar.gz`` after the URI.
     """
 
     def __init__(self, filename, uri, **kwargs):

Reply via email to