qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] meson: Fix MESONINTROSPECT parsing
@ 2023-08-12  6:15 Akihiko Odaki
  2023-08-12  8:01 ` Michael Tokarev
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Akihiko Odaki @ 2023-08-12  6:15 UTC (permalink / raw)
  Cc: qemu-devel, Philippe Mathieu-Daudé, Thomas Huth,
	Daniel P. Berrangé, Marc-André Lureau, Paolo Bonzini,
	Cleber Rosa, John Snow, Akihiko Odaki, Michael Tokarev

The arguments in MESONINTROSPECT are quoted with shlex.quote() so it
must be parsed with shlex.split().

Fixes: cf60ccc330 ("cutils: Introduce bundle mechanism")
Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
 scripts/symlink-install-tree.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/symlink-install-tree.py b/scripts/symlink-install-tree.py
index 8ed97e3c94..b72563895c 100644
--- a/scripts/symlink-install-tree.py
+++ b/scripts/symlink-install-tree.py
@@ -4,6 +4,7 @@
 import errno
 import json
 import os
+import shlex
 import subprocess
 import sys
 
@@ -14,7 +15,7 @@ def destdir_join(d1: str, d2: str) -> str:
     return str(PurePath(d1, *PurePath(d2).parts[1:]))
 
 introspect = os.environ.get('MESONINTROSPECT')
-out = subprocess.run([*introspect.split(' '), '--installed'],
+out = subprocess.run([*shlex.split(introspect), '--installed'],
                      stdout=subprocess.PIPE, check=True).stdout
 for source, dest in json.loads(out).items():
     bundle_dest = destdir_join('qemu-bundle', dest)
-- 
2.41.0



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

end of thread, other threads:[~2024-03-25 17:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-12  6:15 [PATCH] meson: Fix MESONINTROSPECT parsing Akihiko Odaki
2023-08-12  8:01 ` Michael Tokarev
2023-08-12  9:16   ` Akihiko Odaki
2023-08-12 11:13     ` Paolo Bonzini
2023-08-12  8:45 ` Philippe Mathieu-Daudé
2023-08-12 12:09 ` Akihiko Odaki
2023-08-12 13:31   ` Michael Tokarev
2024-03-25 17:23   ` Peter Maydell
2024-03-25 17:34     ` Michael Tokarev

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 NNTP newsgroup(s).