all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#38852] [PATCH] gnu: python-py3status: Fix patch of file path
@ 2020-01-01 18:43 Jakub Kądziołka
  2020-01-06 14:35 ` bug#38852: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Kądziołka @ 2020-01-01 18:43 UTC (permalink / raw)
  To: 38852

* 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

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

* bug#38852: [PATCH] gnu: python-py3status: Fix patch of file path
  2020-01-01 18:43 [bug#38852] [PATCH] gnu: python-py3status: Fix patch of file path Jakub Kądziołka
@ 2020-01-06 14:35 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2020-01-06 14:35 UTC (permalink / raw)
  To: Jakub Kądziołka; +Cc: 38852-done

Hello,

Jakub Kądziołka <kuba@kadziolka.net> 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’.

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

end of thread, other threads:[~2020-01-06 14:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-01 18:43 [bug#38852] [PATCH] gnu: python-py3status: Fix patch of file path Jakub Kądziołka
2020-01-06 14:35 ` bug#38852: " Ludovic Courtès

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.