def rollback(self):
for p in self._moves:<EOL><INDENT>logging.info("<STR_LIT>", *p)<EOL><DEDENT>for new_path, path in self._moves:<EOL><INDENT>try:<EOL><INDENT>logger.debug('<STR_LIT>', new_path, path)<EOL>if os.path.isfile(new_path):<EOL><INDENT>os.unlink(new_path)<EOL><DEDENT>elif os.path.isdir(new_path):<EOL><INDENT>rmtree(new_path)<EOL><DEDENT>renames(path, new_path)<EOL><DEDENT>except OSError as ex:<EOL><INDENT>logger.error("<STR_LIT>", new_path)<EOL>logger.debug("<STR_LIT>", ex)<EOL><DEDENT><DEDENT>self.commit()<EOL>
Undoes the uninstall by moving stashed files back.