From 99dd411cb051db8ba4913f0df02cac300c635433 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 1 Aug 2013 15:16:52 -0400 Subject: Feature: %globals script section added. Anything in this section will be prepended to the resulting script. Easier than coding a macro subsystem. --- ipsutils/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ipsutils/config.py') diff --git a/ipsutils/config.py b/ipsutils/config.py index eed142c..b2ad4a8 100644 --- a/ipsutils/config.py +++ b/ipsutils/config.py @@ -42,6 +42,7 @@ class Config(object): #Define valid build script sections in SPEC file script_dict = collections.OrderedDict() + script_dict['globals'] = [] script_dict['prep'] = [] script_dict['build'] = [] script_dict['install'] = [] @@ -81,7 +82,7 @@ class Config(object): #Parse user defined scripts by section and store them in script_dict found_data = False - code_section = ['%build', '%prep', '%install', '%transforms'] + code_section = ['%globals', '%prep', '%build', '%install', '%transforms'] for section in code_section: for line in ipsfile_output: -- cgit