diff options
author | Gert Wollny <[email protected]> | 2018-08-03 11:47:28 +0200 |
---|---|---|
committer | Gert Wollny <[email protected]> | 2018-08-06 18:42:01 +0200 |
commit | 7a46b2d6418aa1adedf5621ad1a2a43676785851 (patch) | |
tree | 7c594f02f70a8c5b9ab3beecc54a6e2222f88c80 /bin/meson.build | |
parent | 5eb4b384d93d8733004349756ada0060616789ca (diff) |
meson, install_megadrivers: Also remove stale symlinks
os.path.exists doesn't return True for stale symlinks, but they are in
the way later, when a link/file with the same name is to be created.
For instance it is conceivable that the pointed to file is replaced by
a file with a new name, and then the symlink is dead.
To handle this check specifically for all existing symlinks to be
removed. (This bugged me for some time with a link libXvMCr600.so
always being in the way of installing this file)
v2: use only os.lexist and replace all instances of os.exist (Dylan Baker)
v3: handle directory check correctly (Eric Engestrom)
Fixes: f7f1b30f81e842db6057591470ce3cb6d4fb2795
("meson: extend install_megadrivers script to handle symmlinking")
Reviewed-by: Eric Engestrom <[email protected]>(v2 minus dir check)
Reviewed-by: Dylan Baker <[email protected]>
Signed-off-by: Gert Wollny <[email protected]>
Diffstat (limited to 'bin/meson.build')
0 files changed, 0 insertions, 0 deletions