예제 #1
0
파일: parts.py 프로젝트: tachyons/snapcraft
    def load_plugin(self, part_name, plugin_name, properties):
        part = pluginhandler.load_plugin(part_name, plugin_name, properties,
                                         self._project_options,
                                         self._validator.part_schema)

        self.build_tools += part.code.build_packages
        self.build_tools += sources.get_required_packages(part.code.options)
        self.all_parts.append(part)
        return part
예제 #2
0
파일: yaml.py 프로젝트: CSRedRat/snapcraft
    def load_plugin(self, part_name, plugin_name, properties):
        part = pluginhandler.load_plugin(
            part_name, plugin_name, properties,
            self._project_options, self._validator.part_schema)

        self.build_tools += part.code.build_packages
        self.build_tools += sources.get_required_packages(part.code.options)
        self.all_parts.append(part)
        return part