gnu: python-py3status: Fix patch of file path
authorJakub Kądziołka <kuba@kadziolka.net>
Wed, 1 Jan 2020 18:43:49 +0000 (19:43 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 6 Jan 2020 15:31:54 +0000 (16:31 +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.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
gnu/packages/python-xyz.scm

index 7c1a4f8..194d8b8 100644 (file)
@@ -9912,7 +9912,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.