unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#63639] [PATCH] gnu: password-store: Fix program name in usage and tmpdir.
@ 2023-05-22  7:44 Tobias Kortkamp
  2023-07-01 11:15 ` bug#63639: " Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Tobias Kortkamp @ 2023-05-22  7:44 UTC (permalink / raw)
  To: 63639; +Cc: Tobias Kortkamp

* gnu/packages/password-utils.scm (password-store): Fix program name in
usage and tmpdir.
---
 gnu/packages/password-utils.scm | 6 ++++++
 1 file changed, 6 insertions(+)

Hi,

pass from password-store uses the wrong programn name in its usage. The
program name is also used when creating temporary directories/files during
'pass edit'. It doesn't break anything though AFAICT, so this is purely a
cosmetic issue:

#+begin_src
$ pass help
[...]
Usage:
    .pass-real init [--path=subfolder,-p subfolder] gpg-id...
        Initialize new password storage and use gpg-id for encryption.
        Selectively reencrypt existing passwords using new gpg-id.
[...]
#+end_src

Thanks.

diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index f5f301308a..b4cd866514 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -563,6 +563,12 @@ (define-public password-store
                                  "${PASSWORD_STORE_SYSTEM_EXTENSION_DIR:-"
                                  extension-dir
                                  "}\"\n"))))))
+         (add-before 'install 'patch-program-name
+           ;; Use pass not .pass-real in tmpdir and cmd_usage
+           (lambda _
+             (substitute* "src/password-store.sh"
+               (("^PROGRAM=.*$")
+                "PROGRAM=\"pass\"\n"))))
          (add-before 'install 'patch-passmenu-path
            ;; FIXME Wayland support requires ydotool and dmenu-wl packages
            ;; We are ignoring part of the script that gets executed if

base-commit: 849286ba66c96534bddc04df1a47d5692cbc977e
-- 
2.40.1





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#63639: [PATCH] gnu: password-store: Fix program name in usage and tmpdir.
  2023-05-22  7:44 [bug#63639] [PATCH] gnu: password-store: Fix program name in usage and tmpdir Tobias Kortkamp
@ 2023-07-01 11:15 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2023-07-01 11:15 UTC (permalink / raw)
  To: Tobias Kortkamp; +Cc: 63639-done

Hello,

Tobias Kortkamp <tobias.kortkamp@gmail.com> writes:

> * gnu/packages/password-utils.scm (password-store): Fix program name in
> usage and tmpdir.

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-01 11:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-22  7:44 [bug#63639] [PATCH] gnu: password-store: Fix program name in usage and tmpdir Tobias Kortkamp
2023-07-01 11:15 ` bug#63639: " Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).