[PATCH v3] EbuildPhase: add SLOT to package version line
Thomas Bracht Laumann Jespersen <[email protected]> Mon, 8 Aug 2022 14:38:00 +0200
| Newsgroups | gmane.linux.gentoo.portage.devel |
|---|---|
| Message-ID | <[email protected]> |
Requested as a useful part in the output from tinderbox runs. Bug: https://bugs.gentoo.org/864382 Signed-off-by: Thomas Bracht Laumann Jespersen <[email protected]> --- v2 -> v3: * Fix so string interpolation actually works * Change the bug reference from "Closes:" to "Bug:" lib/_emerge/EbuildPhase.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/_emerge/EbuildPhase.py b/lib/_emerge/EbuildPhase.py index 9a04f9c1f..a1eaf86c1 100644 --- a/lib/_emerge/EbuildPhase.py +++ b/lib/_emerge/EbuildPhase.py @@ -135,7 +135,9 @@ class EbuildPhase(CompositeTask): maint_str = "<invalid metadata.xml>" msg = [] - msg.append("Package: %s" % self.settings.mycpv) + msg.append( + "Package: %s:%s" % (self.settings.mycpv, self.settings["SLOT"]) + ) if self.settings.get("PORTAGE_REPO_NAME"): msg.append("Repository: %s" % self.settings["PORTAGE_REPO_NAME"]) if maint_str: -- 2.37.1