gst-env: Ensure target install filename is a list
authorPhilippe Normand <philn@igalia.com>
Sat, 2 Nov 2019 15:23:45 +0000 (16:23 +0100)
committerPhilippe Normand <philn@igalia.com>
Wed, 6 Nov 2019 08:33:46 +0000 (09:33 +0100)
At least in Meson 0.49, the target['install_name'] is a string, not a list, so
the heuristics declared in the is_library_target_and_not_plugin() can't apply
because Python is actually happy to iterate over a string without any warning.

gst-env.py

index 16c7a14..c5e2fc8 100755 (executable)
@@ -77,7 +77,7 @@ def is_library_target_and_not_plugin(target, filename):
     if not SHAREDLIB_REG.search(filename):
         return False
     # Check if it's installed to the gstreamer plugin location
-    for install_filename in target['install_filename']:
+    for install_filename in listify(target['install_filename']):
         if install_filename.endswith(os.path.basename(filename)):
             break
     else: