aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2018-08-16 04:19:16 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2018-08-17 16:41:09 +0200
commit5de2a7910aafb39940789f5dbed244c230624917 (patch)
tree460ebcef609ca69a240f87a126860842d98a26ae /run_unittests.py
parent2d010727ed6657cb53d5043032417e0a9035e117 (diff)
downloadmeson-5de2a7910aafb39940789f5dbed244c230624917.zip
meson-5de2a7910aafb39940789f5dbed244c230624917.tar.gz
meson-5de2a7910aafb39940789f5dbed244c230624917.tar.bz2
minstall: never follow symlinks when setting ownership
Since we're supposed to call this for each installed path, we only should go through what we've installed and not what this point to, as it might be outside our scope or not existent. To do this, since shutil.chown doesn't expose the follow_symlink that os.chown has, we can temporarily replace os.chown with a lambda that acutually passes all the values as we want them, and then restore it to the built-in functions. Not the nicest way, but fixes the issue without having to reimplement what shutil does. Fixes #3914
Diffstat (limited to 'run_unittests.py')
0 files changed, 0 insertions, 0 deletions