зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
ca3d97b658
Коммит
f1348beac8
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче