[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#58673] [PATCH] gnu: s3cmd: Fix program name in --help output.
From: |
Matthew James Kraai |
Subject: |
[bug#58673] [PATCH] gnu: s3cmd: Fix program name in --help output. |
Date: |
Thu, 20 Oct 2022 20:21:51 -0700 |
* gnu/packages/python-xyz.scm (s3cmd)[arguments]: Add a new 'hide-wrapping
phase.
---
gnu/packages/python-xyz.scm | 7 +++++++
1 file changed, 7 insertions(+)
The Commands section of `s3cmd --help`'s output displays `.s3cmd-real` instead
of `s3cmd` in the commands (e.g., `.s3cmd-real mb s3://BUCKET`). This makes
it display `s3cmd` instead (e.g., `s3cmd mb s3://BUCKET`).
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 32bd986a12..81fa89fec2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16222,6 +16222,13 @@ (define-public s3cmd
(sha256
(base32 "0rdgwwmmp8mdxc84bxq6k9a7v7z2qgc3df47djzs2b84gw81dglx"))))
(build-system python-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'hide-wrapping
+ (lambda _
+ (substitute* "s3cmd"
+ (("optparser\\.get_prog_name\\(\\)") "\"s3cmd\"")))))))
(inputs
(list python-dateutil
python-magic))
--
2.38.0
- [bug#58673] [PATCH] gnu: s3cmd: Fix program name in --help output.,
Matthew James Kraai <=