• Gert Wollny's avatar
    meson, install_megadrivers: Also remove stale symlinks · 7a46b2d6
    Gert Wollny authored
    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: f7f1b30f
           ("meson: extend install_megadrivers script to handle symmlinking")
    
    Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>(v2 minus dir check)
    Reviewed-by: Dylan Baker's avatarDylan Baker <dylan@pnwbakers.com>
    Signed-off-by: Gert Wollny's avatarGert Wollny <gert.wollny@collabora.com>
    7a46b2d6
Name
Last commit
Last update
..
.editorconfig Loading commit data...
.gitignore Loading commit data...
bugzilla_mesa.sh Loading commit data...
get-extra-pick-list.sh Loading commit data...
get-fixes-pick-list.sh Loading commit data...
get-pick-list.sh Loading commit data...
get-typod-pick-list.sh Loading commit data...
git_sha1_gen.py Loading commit data...
install_megadrivers.py Loading commit data...
meson.build Loading commit data...
meson_get_version.py Loading commit data...
perf-annotate-jit.py Loading commit data...
shortlog_mesa.sh Loading commit data...