def remove(self): if self.source.has("executable"): symlink = self.source.get("symlink", self.source.get("executable")) if os.path.exists(symlink) and os.path.islink(symlink): try: self.directory.remove_from_bin(self.source("symlink", self.source.get("executable"))) except DirectoryException: pass FormulaBase.remove(self)
def remove(self, feature_name, config): if self.source.is_affirmative('remove_file_on_delete', False): os.path.unlink( os.path.expanduser(self.source.get('target'))) FormulaBase.remove(feature_name, config)
def remove(self): if self.source.is_affirmative('remove_p4root'): self.logger.info("Removing %s..." % self.source.get('root_path')) shutil.rmtree(os.path.expanduser(self.source.get('root_path'))) FormulaBase.remove(self)
def remove(self): self.__run_command('remove', 'source') FormulaBase.remove(self)