commit:     dec725db9a6e01516765f88e3bce77582d8c69a4
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  1 08:34:15 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Aug  1 08:39:33 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dec725db

app-portage/iwdevtools: backport rcd name display fix

Not bothering with a release over this, but still wanted
before stabling.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 .../files/iwdevtools-0.11.5-rcd-plain-name.patch       | 18 ++++++++++++++++++
 ...tools-0.11.5.ebuild => iwdevtools-0.11.5-r1.ebuild} |  4 ++++
 2 files changed, 22 insertions(+)

diff --git 
a/app-portage/iwdevtools/files/iwdevtools-0.11.5-rcd-plain-name.patch 
b/app-portage/iwdevtools/files/iwdevtools-0.11.5-rcd-plain-name.patch
new file mode 100644
index 000000000000..dbb2ca17f887
--- /dev/null
+++ b/app-portage/iwdevtools/files/iwdevtools-0.11.5-rcd-plain-name.patch
@@ -0,0 +1,18 @@
+https://github.com/ionenwks/iwdevtools/commit/408fba9
+From: Ionen Wolkens <io...@gentoo.org>
+Date: Mon, 1 Aug 2022 04:28:49 -0400
+Subject: [PATCH] repo-cd: use plain name for error display
+
+Given doesn't look so nice with the [_-] addition:
+ ! no non-excluded match found for '*some[_-]name*'
+--- a/scripts/repo-cd
++++ b/scripts/repo-cd
+@@ -307,7 +307,7 @@ rcd-cd() {
+               done | mapfile -td '' choice
+ 
+               if (( ! ${#choice[@]} )); then
+-                      rcd-msg '!:r' "no non-excluded match found for 
'${C[m]}${search}${C[n]}'${userepo:+ in ::${userepo}}"
++                      rcd-msg '!:r' "no non-excluded match found for 
'${C[m]}${name}${C[n]}'${userepo:+ in ::${userepo}}"
+                       exit 104
+               fi
+ 

diff --git a/app-portage/iwdevtools/iwdevtools-0.11.5.ebuild 
b/app-portage/iwdevtools/iwdevtools-0.11.5-r1.ebuild
similarity index 97%
rename from app-portage/iwdevtools/iwdevtools-0.11.5.ebuild
rename to app-portage/iwdevtools/iwdevtools-0.11.5-r1.ebuild
index 68858249d8a0..46e22b80aa3d 100644
--- a/app-portage/iwdevtools/iwdevtools-0.11.5.ebuild
+++ b/app-portage/iwdevtools/iwdevtools-0.11.5-r1.ebuild
@@ -29,6 +29,10 @@ BDEPEND="
        || ( sys-apps/util-linux app-misc/getopt )
        test? ( ${RDEPEND} )"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-rcd-plain-name.patch
+)
+
 src_configure() {
        local emesonargs=(
                -Ddocdir=${PF}

Reply via email to