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): 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): if self.source.is_affirmative('remove_file_on_delete', False): os.path.unlink(os.path.expanduser(self.source.get('target'))) FormulaBase.remove(self)
def remove(self): self.__run_command('remove', 'source') FormulaBase.remove(self)
def remove(self): self.__run_command('remove', 'source') FormulaBase.remove(self)
def remove(self): if self.source.is_affirmative('remove_file_on_delete', False): os.path.unlink( os.path.expanduser(self.source.get('target'))) FormulaBase.remove(self)
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): source_opts = self.__get_options(self.source) self.__remove_symlink(**source_opts) FormulaBase.remove(self)
def remove(self): source_opts = self.__get_options(self.source) self.__remove_symlink(**source_opts) FormulaBase.remove(self)