Details
Description
Currently, Hue creates a new file whenever it needs to update its app registry:
def save(self): """Save and write out the registry""" assert self._initialized, "Registry not yet initialized" tmp_path = self._reg_path + '.new' self._write(tmp_path) os.rename(tmp_path, self._reg_path) LOG.info('=== Saved registry at %s' % (self._reg_path,))
It should not create a new file, but truncate and overwrite the previous file so that symbolic links are preserved.