commit: 9b634116478cefbce700acdfd5d819828f17863e Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Dec 10 15:52:48 2022 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Tue Dec 13 19:58:46 2022 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=9b634116
MissingRemoteIdCheck: give ready <remote-id/> sample Instead of verbose description of what to put in the missing remote-id element, just print a ready-to-use XML snippet. Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> Closes: https://github.com/pkgcore/pkgcheck/pull/500 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> src/pkgcheck/checks/metadata_xml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkgcheck/checks/metadata_xml.py b/src/pkgcheck/checks/metadata_xml.py index 06d62cf3..2182585b 100644 --- a/src/pkgcheck/checks/metadata_xml.py +++ b/src/pkgcheck/checks/metadata_xml.py @@ -577,8 +577,8 @@ class MissingRemoteId(results.PackageResult, results.Info): @property def desc(self): - return (f'missing remote-id of type {self.remote_type!r} with ' - f'value {self.value!r} (inferred from URI {self.uri!r})') + return (f'missing <remote-id type="{self.remote_type}">' + f'{self.value}</remote-id> (inferred from URI {self.uri!r})') class MissingRemoteIdCheck(Check):