app-admin/rbw: fix parser's argument group

Closes: https://bugs.gentoo.org/935517
Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
This commit is contained in:
Lucio Sauer
2024-07-28 22:39:20 +02:00
parent 1f5bcc7add
commit 76ce5ffa89
3 changed files with 27 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
`rbw gen-completions bash` breaks when the package was built with a debug
profile. This is a tentative fix.
Bug: https://bugs.gentoo.org/935517
See-also: https://github.com/doy/rbw/issues/198
Author: Lucio Sauer <watermanpaint@posteo.net>
--- a/src/bin/rbw/main.rs
+++ b/src/bin/rbw/main.rs
@@ -145,8 +145,8 @@ enum Opt {
password to the database.",
visible_alias = "gen",
group = clap::ArgGroup::new("password-type").args(&[
- "no-symbols",
- "only-numbers",
+ "no_symbols",
+ "only_numbers",
"nonconfusables",
"diceware",
])

View File

@@ -326,6 +326,8 @@ SLOT="0"
RDEPEND="app-crypt/pinentry"
BDEPEND=">=virtual/rust-1.74"
PATCHES="${FILESDIR}"/${P}-gen-completions.patch
QA_FLAGS_IGNORED="
usr/bin/rbw
usr/bin/rbw-agent
@@ -351,7 +353,8 @@ src_install() {
local comp DOCS="CHANGELOG.md README.md"
for comp in bash fish zsh; do
"$(cargo_target_dir)"/rbw gen-completions ${comp} > rbw.${comp} || die
"$(cargo_target_dir)"/rbw gen-completions ${comp} > rbw.${comp} || \
die "Failed to generate completions for ${comp}."
done
newbashcomp rbw.bash rbw
dofishcomp rbw.fish

View File

@@ -29,6 +29,8 @@ SLOT="0"
RDEPEND="app-crypt/pinentry"
BDEPEND=">=virtual/rust-1.74"
PATCHES="${FILESDIR}"/${PN}-1.11.1-gen-completions.patch
QA_FLAGS_IGNORED="
usr/bin/rbw
usr/bin/rbw-agent
@@ -54,7 +56,8 @@ src_install() {
local comp DOCS="CHANGELOG.md README.md"
for comp in bash fish zsh; do
"$(cargo_target_dir)"/rbw gen-completions ${comp} > rbw.${comp} || die
"$(cargo_target_dir)"/rbw gen-completions ${comp} > rbw.${comp} || \
die "Failed to generate completions for ${comp}."
done
newbashcomp rbw.bash rbw
dofishcomp rbw.fish