Always delete lockfiles in _fix_symlinks

This commit is contained in:
Brad Warren 2015-10-12 21:04:40 -07:00
parent b90827dc98
commit acc44f2b65

View file

@ -238,10 +238,10 @@ class RenewableCert(object): # pylint: disable=too-many-instance-attributes
os.unlink(link)
with open(lockfile) as f:
os.symlink(f.readline().rstrip(), link)
else:
for _, lockfile in lockfiles:
if os.path.exists(lockfile):
os.unlink(lockfile)
for _, lockfile in lockfiles:
if os.path.exists(lockfile):
os.unlink(lockfile)
def current_target(self, kind):
"""Returns full path to which the specified item currently points.