Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pkgcore/pkgcheck:master commit in: src/pkgcheck/checks/
Date: Sat, 29 Oct 2022 18:46:06
Message-Id: 1667069123.01b68ca982ce815c46330b9fabf2aefb7fd965b6.arthurzam@gentoo
1 commit: 01b68ca982ce815c46330b9fabf2aefb7fd965b6
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 29 18:45:23 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 29 18:45:23 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=01b68ca9
7
8 PythonGHDistfileSuffix: add common solution to docs
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 src/pkgcheck/checks/python.py | 4 ++++
13 1 file changed, 4 insertions(+)
14
15 diff --git a/src/pkgcheck/checks/python.py b/src/pkgcheck/checks/python.py
16 index fc9a58e7..5d6a8a1a 100644
17 --- a/src/pkgcheck/checks/python.py
18 +++ b/src/pkgcheck/checks/python.py
19 @@ -621,6 +621,10 @@ class PythonGHDistfileSuffix(results.VersionResult, results.Warning):
20 published on PyPI. Since both kinds of distfiles often have the same name,
21 ".gh.tar.gz" suffix is often used for the former to avoid filename
22 collisions with official archives published upstream.
23 +
24 + To solve this warning, rename the distfile in ``SRC_URI`` to include the
25 + suffix. There is no need to contact upstream, as it is done simply by
26 + adding ``-> ${P}.gh.tar.gz`` after the URI.
27 """
28
29 def __init__(self, filename, uri, **kwargs):