Exemplo n.º 1
0
 def post(self, command, output_dir, vars):
     """register catogory, and roll in common,"""
     common.Package.post(self, command, output_dir, vars)
     os.rename(os.path.join(vars['path'], 'gitignore'),
               os.path.join(vars['path'], '.gitignore'))
     for f in glob(os.path.join(output_dir, 'scripts/*')):
         os.chmod(f, 0700)
     if not vars['with_supervisor']:
         common.remove_path(self.output_dir + '/etc/sys/supervisor.cfg')
         common.remove_path(self.output_dir + '/etc/templates/supervisor')
     if not vars['with_cache_support']:
         common.remove_path(self.output_dir + '/etc/sys/cache.cfg')
         common.remove_path(self.output_dir + '/etc/templates/varnish')
     if not vars['with_haproxy']:
         common.remove_path(self.output_dir + '/etc/sys/ha.cfg')
         common.remove_path(self.output_dir + '/etc/templates/ha')
     if not vars['with_ploneproduct_etherpad']:
         common.remove_path(self.output_dir + '/etc/project/etherpad.cfg')
         common.remove_path(self.output_dir + '/etc/templates/etherpad')
 def post(self, command, output_dir, vars):
     """register catogory, and roll in common,"""
     common.Package.post(self, command, output_dir, vars)
     if not vars['with_supervisor']:
         common.remove_path(self.output_dir + '/etc/sys/supervisor.cfg')
         common.remove_path(self.output_dir + '/etc/templates/supervisor')