Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
 def remove(self):
     self.__run_command('remove', 'source')
     FormulaBase.remove(self)