~sergiusens/snapcraft/1481499

« back to all changes in this revision

Viewing changes to snapcraft/yaml.py

  • Committer: Sergio Schvezov
  • Date: 2015-09-18 14:53:03 UTC
  • mto: This revision was merged to the branch mainline in revision 180.
  • Revision ID: sergio.schvezov@canonical.com-20150918145303-gsjbw0i6agdhji5n
build-packages instead of build-tools to follow the spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
        self.data = _snapcraft_yaml_load()
76
76
        _validate_snapcraft_yaml(self.data)
77
77
 
78
 
        self.build_tools = self.data.get('build-tools', [])
 
78
        self.build_tools = self.data.get('build-packages', [])
79
79
 
80
80
        for part_name in self.data.get("parts", []):
81
81
            properties = self.data["parts"][part_name] or {}
160
160
    def load_plugin(self, part_name, plugin_name, properties, load_code=True):
161
161
        part = snapcraft.plugin.load_plugin(part_name, plugin_name, properties, load_code=load_code)
162
162
 
163
 
        self.build_tools += part.config.get('build-tools', [])
 
163
        self.build_tools += part.config.get('build-packages', [])
164
164
        self.all_parts.append(part)
165
165
        return part
166
166