Re: [Mesa-dev] [PATCH v2] meson, install_megadrivers: Also remove stale symlinks

2018-08-06 Thread Gert Wollny
Am Montag, den 06.08.2018, 16:59 +0100 schrieb Eric Engestrom: > On Monday, 2018-08-06 09:41:48 +0200, Gert Wollny wrote: > > 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

Re: [Mesa-dev] [PATCH v2] meson, install_megadrivers: Also remove stale symlinks

2018-08-06 Thread Dylan Baker
Quoting Eric Engestrom (2018-08-06 08:59:00) > On Monday, 2018-08-06 09:41:48 +0200, Gert Wollny wrote: > > 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

Re: [Mesa-dev] [PATCH v2] meson, install_megadrivers: Also remove stale symlinks

2018-08-06 Thread Eric Engestrom
On Monday, 2018-08-06 09:41:48 +0200, Gert Wollny wrote: > 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

[Mesa-dev] [PATCH v2] meson, install_megadrivers: Also remove stale symlinks

2018-08-06 Thread Gert Wollny
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