Commit 0b7bada5 authored by Kai Lautaportti's avatar Kai Lautaportti

Fixed a bug with disabling hooks.


git-svn-id: https://svn.hexagonit.fi/hexagonit.recipe.cmmi/trunk@5527 b96f28ea-bbdf-0310-b3b3-e15a02b9f88d
parent 854cd904
Change History
**************
1.1.1
=====
- Don't try to execute hooks if the option is an empty string. This
will make it possible to disable hooks when extending existing
parts.
1.1.0
=====
......
......@@ -104,20 +104,20 @@ class Recipe:
for patch in patches:
self.run('%s %s < %s' % (patch_cmd, patch_options, patch))
if 'pre-configure-hook' in self.options:
if 'pre-configure-hook' in self.options and len(self.options['pre-configure-hook'].strip()) > 0:
log.info('Executing pre-configure-hook')
self.call_script(self.options['pre-configure-hook'])
self.run('./configure --prefix=%s %s' % (self.options['prefix'], configure_options))
if 'pre-make-hook' in self.options:
if 'pre-make-hook' in self.options and len(self.options['pre-make-hook'].strip()) > 0:
log.info('Executing pre-make-hook')
self.call_script(self.options['pre-make-hook'])
self.run(make_cmd)
self.run('%s %s' % (make_cmd, make_targets))
if 'post-make-hook' in self.options:
if 'post-make-hook' in self.options and len(self.options['post-make-hook'].strip()) > 0:
log.info('Executing post-make-hook')
self.call_script(self.options['post-make-hook'])
......
from setuptools import setup, find_packages
import os
version = '1.1.0'
version = '1.1.1'
name = 'hexagonit.recipe.cmmi'
def read(*rnames):
......
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