public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
To: gentoo-portage-dev@lists.gentoo.org
Cc: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
Subject: [gentoo-portage-dev] [PATCH v3] EbuildPhase: add SLOT to package version line
Date: Mon,  8 Aug 2022 14:38:00 +0200	[thread overview]
Message-ID: <20220808123800.15733-1-t@laumann.xyz> (raw)
In-Reply-To: <20220808120931.25293-1-t@laumann.xyz>

Requested as a useful part in the output from tinderbox runs.

Bug: https://bugs.gentoo.org/864382
Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
---

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



      reply	other threads:[~2022-08-08 12:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-08 11:49 [gentoo-portage-dev] [PATCH] EbuildPhase: print SLOT along other build metadata Thomas Bracht Laumann Jespersen
2022-08-08 12:09 ` Thomas Bracht Laumann Jespersen
2022-08-08 12:38   ` Thomas Bracht Laumann Jespersen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220808123800.15733-1-t@laumann.xyz \
    --to=t@laumann.xyz \
    --cc=gentoo-portage-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox