--- Begin Message ---
Subject: |
[PATCH] gnu: python-py3status: Fix patch of file path |
Date: |
Wed, 1 Jan 2020 19:43:49 +0100 |
* gnu/packages/python-xyz.scm (python-py3status): Fix patch of file
path.
[arguments]: Replace single-quotes with double-quotes so that the
regex matches again. The "replace-with" value is not changed as it's
not necessary and would introduce escaping noise.
---
gnu/packages/python-xyz.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9b71982c3a..7001c69762 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9908,7 +9908,7 @@ to occurrences in strings and comments.")
(lambda* (#:key inputs #:allow-other-keys)
(let ((file-path (assoc-ref inputs "file")))
(substitute* "py3status/parse_config.py"
- (("\\['file', '-b'")
+ (("\\[\"file\", \"-b\"")
(string-append "['" file-path "/bin/file', '-b'")))
#t))))
#:tests? #f)) ; TODO: Requires many libraries not in Guix.
--
2.24.1
--- End Message ---
--- Begin Message ---
Subject: |
Re: [bug#38852] [PATCH] gnu: python-py3status: Fix patch of file path |
Date: |
Mon, 06 Jan 2020 15:35:41 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hello,
Jakub Kądziołka <address@hidden> skribis:
> * gnu/packages/python-xyz.scm (python-py3status): Fix patch of file
> path.
> [arguments]: Replace single-quotes with double-quotes so that the
> regex matches again. The "replace-with" value is not changed as it's
> not necessary and would introduce escaping noise.
Good catch. Applied, thanks!
Ludo’.
--- End Message ---