From: Eric Engestrom Date: Tue, 9 Apr 2019 08:28:17 +0000 (+0100) Subject: meson: remove meson-created megadrivers symlinks X-Git-Tag: upstream/19.3.0~7444 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c77acc3ceba711ec3790fb674aeb8c6a25433741;p=platform%2Fupstream%2Fmesa.git meson: remove meson-created megadrivers symlinks Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110356 Fixes: aa7afe324c2092fb31f9 "meson: strip rpath from megadrivers" Signed-off-by: Eric Engestrom Tested-by: Mike Lothian Reviewed-by: Eric Anholt --- diff --git a/bin/install_megadrivers.py b/bin/install_megadrivers.py index 31636f7..470137e 100644 --- a/bin/install_megadrivers.py +++ b/bin/install_megadrivers.py @@ -69,7 +69,14 @@ def main(): name, ext = os.path.splitext(name) finally: os.chdir(ret) + + # Remove meson-created master .so and symlinks os.unlink(master) + name, ext = os.path.splitext(master) + while ext != '.so': + if os.path.lexists(name): + os.unlink(name) + name, ext = os.path.splitext(name) if __name__ == '__main__':