Gentoo Archives: gentoo-portage-dev

From: Thomas Bracht Laumann Jespersen <t@×××××××.xyz>
To: gentoo-portage-dev@l.g.o
Cc: Thomas Bracht Laumann Jespersen <t@×××××××.xyz>
Subject: [gentoo-portage-dev] [PATCH v3] EbuildPhase: add SLOT to package version line
Date: Mon, 08 Aug 2022 12:38:14
Message-Id: 20220808123800.15733-1-t@laumann.xyz
In Reply to: [gentoo-portage-dev] [PATCH] EbuildPhase: print SLOT along other build metadata by Thomas Bracht Laumann Jespersen
1 Requested as a useful part in the output from tinderbox runs.
2
3 Bug: https://bugs.gentoo.org/864382
4 Signed-off-by: Thomas Bracht Laumann Jespersen <t@×××××××.xyz>
5 ---
6
7 v2 -> v3:
8
9 * Fix so string interpolation actually works
10 * Change the bug reference from "Closes:" to "Bug:"
11
12 lib/_emerge/EbuildPhase.py | 4 +++-
13 1 file changed, 3 insertions(+), 1 deletion(-)
14
15 diff --git a/lib/_emerge/EbuildPhase.py b/lib/_emerge/EbuildPhase.py
16 index 9a04f9c1f..a1eaf86c1 100644
17 --- a/lib/_emerge/EbuildPhase.py
18 +++ b/lib/_emerge/EbuildPhase.py
19 @@ -135,7 +135,9 @@ class EbuildPhase(CompositeTask):
20 maint_str = "<invalid metadata.xml>"
21
22 msg = []
23 - msg.append("Package: %s" % self.settings.mycpv)
24 + msg.append(
25 + "Package: %s:%s" % (self.settings.mycpv, self.settings["SLOT"])
26 + )
27 if self.settings.get("PORTAGE_REPO_NAME"):
28 msg.append("Repository: %s" % self.settings["PORTAGE_REPO_NAME"])
29 if maint_str:
30 --
31 2.37.1