Bug 1394576 - Fix install manifests tracking with broken symlinks; r=gps

The install manifest with the .track files uses os.path.exists() to
determine if a previously tracked file is no longer installed and needs
to be removed from the system. However, exists() returns False for
broken symlinks, so as far as the manifest is concerned, there is no
file in the filesystem that needs to be removed. We should use lexists()
so we know that the broken symlink still exists in the system so
that it can be removed when the install manifest is processed.

MozReview-Commit-ID: 6v7CYOKzjGs

--HG--
extra : rebase_source : 8aeeef59e644613f34c8458bd30a83d8299585ea
This commit is contained in:
Mike Shal 2017-08-28 22:12:04 -04:00
Родитель ca3d97b658
Коммит f1348beac8
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -995,7 +995,7 @@ class FileFinder(BaseFinder):
def get(self, path):
srcpath = os.path.join(self.base, path)
if not os.path.exists(srcpath):
if not os.path.lexists(srcpath):
return None
for p in self.ignore: