Exemplo n.º 1
0
    def __init__(self, project_options=None):
        if project_options is None:
            project_options = snapcraft.ProjectOptions()

        self.build_tools = []
        self.all_parts = []
        self._part_names = []
        self._project_options = project_options
        self.after_requests = {}

        self._snapcraft_yaml = _get_snapcraft_yaml()
        self.data = _snapcraft_yaml_load(self._snapcraft_yaml)

        self._validator = Validator(self.data)
        self._validator.validate()
        _ensure_confinement_default(self.data, self._validator.schema)

        self.build_tools = self.data.get('build-packages', [])
        self.build_tools.extend(project_options.additional_build_packages)

        self._remote_parts = parts.get_remote_parts()
        self._process_parts()
Exemplo n.º 2
0
 def _remote_parts(self):
     if getattr(self, '_remote_parts_attr', None) is None:
         self._remote_parts_attr = get_remote_parts()
     return self._remote_parts_attr
Exemplo n.º 3
0
 def _remote_parts(self):
     if getattr(self, '_remote_parts_attr', None) is None:
         self._remote_parts_attr = get_remote_parts()
     return self._remote_parts_attr