Commit 5d0dfed4 authored by Łukasz Nowak's avatar Łukasz Nowak

Call zc.recipe.egg correctly.

Initialise once with slapos.recipebox.
Do not use extras, as not required.
parent 3cd289f9
...@@ -46,7 +46,7 @@ class Recipe(BaseSlapRecipe): ...@@ -46,7 +46,7 @@ class Recipe(BaseSlapRecipe):
def _install(self): def _install(self):
self.path_list = [] self.path_list = []
self.requirements, self.ws = self.egg.working_set([__name__]) self.requirements, self.ws = self.egg.working_set()
# self.cron_d is a directory, where cron jobs can be registered # self.cron_d is a directory, where cron jobs can be registered
self.cron_d = self.installCrond() self.cron_d = self.installCrond()
self.logrotate_d, self.logrotate_backup = self.installLogrotate() self.logrotate_d, self.logrotate_backup = self.installLogrotate()
......
...@@ -159,7 +159,7 @@ class Recipe(BaseSlapRecipe): ...@@ -159,7 +159,7 @@ class Recipe(BaseSlapRecipe):
os.symlink(destination, link) os.symlink(destination, link)
def _install(self): def _install(self):
self.requirements, self.ws = self.egg.working_set([__name__]) self.requirements, self.ws = self.egg.working_set()
self.path_list = [] self.path_list = []
self.installSlapOs() self.installSlapOs()
self.setupRunningWrapper() self.setupRunningWrapper()
......
...@@ -39,6 +39,7 @@ class BaseSlapRecipe: ...@@ -39,6 +39,7 @@ class BaseSlapRecipe:
def __init__(self, buildout, name, options): def __init__(self, buildout, name, options):
"""Default initialisation""" """Default initialisation"""
self.name = name self.name = name
options['eggs'] = 'slapos.recipebox'
self.options = options self.options = options
self.logger = logging.getLogger(self.name) self.logger = logging.getLogger(self.name)
self.slap = slap.slap() self.slap = slap.slap()
......
...@@ -33,11 +33,6 @@ import zc.recipe.egg ...@@ -33,11 +33,6 @@ import zc.recipe.egg
class Recipe(BaseSlapRecipe): class Recipe(BaseSlapRecipe):
def __init__(self, buildout, name, options):
BaseSlapRecipe.__init__(self, buildout, name, options)
options['eggs'] = 'slapos.recipe.slaprunner'
self.egg = zc.recipe.egg.Scripts(buildout, name, options)
def _install(self): def _install(self):
self.path_list = [] self.path_list = []
self.requirements, self.ws = self.egg.working_set() self.requirements, self.ws = self.egg.working_set()
......
...@@ -187,7 +187,7 @@ class Recipe(BaseSlapRecipe): ...@@ -187,7 +187,7 @@ class Recipe(BaseSlapRecipe):
return self.path_list return self.path_list
def _install(self): def _install(self):
self.requirements, self.ws = self.egg.working_set([__name__]) self.requirements, self.ws = self.egg.working_set()
self.path_list = [] self.path_list = []
self.installSlapOs() self.installSlapOs()
self.installLocalZip() self.installLocalZip()
......
...@@ -246,7 +246,7 @@ SSLCARevocationPath %(ca_crl)s""" ...@@ -246,7 +246,7 @@ SSLCARevocationPath %(ca_crl)s"""
self.site_check_path = '/%s/getId' % self.site_id self.site_check_path = '/%s/getId' % self.site_id
self.key_auth_path = '/%s/portal_slap' % self.site_id self.key_auth_path = '/%s/portal_slap' % self.site_id
self.path_list = [] self.path_list = []
self.requirements, self.ws = self.egg.working_set([__name__]) self.requirements, self.ws = self.egg.working_set()
# self.cron_d is a directory, where cron jobs can be registered # self.cron_d is a directory, where cron jobs can be registered
self.cron_d = self.installCrond() self.cron_d = self.installCrond()
self.logrotate_d, self.logrotate_backup = self.installLogrotate() self.logrotate_d, self.logrotate_backup = self.installLogrotate()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment