Commit 053815eb authored by Julien Muchembled's avatar Julien Muchembled

build: remove dead code

parent 7f74765f
......@@ -178,8 +178,6 @@
* Bugfix: Honour correctly passed md5sum to download method. [Łukasz Nowak]
* Feature: Utility methods pipeCommand and failIfPathExists. [Łukasz Nowak]
* Bugfix: Rename promisee to promise. [Łukasz Nowak]
* Feature: Allow to define update_script and slapos_update_promise [Łukasz
Nowak]
* Feature: Just warn in case of lack of promise. [Łukasz Nowak]
0.1 (2011-08-26)
......
......@@ -253,7 +253,6 @@ class Script:
return True
script = 'raise NotImplementedError'
update_script = None
def __init__(self, buildout, name, options):
self.cleanup_dir_list = []
......@@ -341,26 +340,7 @@ class Script:
return [self.options['location']]
def update(self):
if self.update_script is None:
return None
try:
env = self.getEnvironment() # env is used in script exec'ed below
exec self.options['update_script']
try:
self._checkPromise('slapos_update_promise', self.options['location'])
except Exception:
self.logger.info('Keeping location %r during update' %
self.options['location'])
raise
finally:
for d in self.cleanup_dir_list:
if os.path.exists(d):
self.logger.debug('Cleanup directory %r' % d)
shutil.rmtree(d)
for f in self.cleanup_file_list:
if os.path.exists(f):
self.logger.debug('Cleanup file %r' % f)
os.unlink(f)
pass
def applyPatchList(self, patch_string, patch_options=None, patch_binary=None, cwd=None):
if patch_string is not None:
......
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