mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
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:
19
app-admin/rbw/files/rbw-1.11.1-gen-completions.patch
Normal file
19
app-admin/rbw/files/rbw-1.11.1-gen-completions.patch
Normal 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",
|
||||
])
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user