示例#1
0
def update(ctx, **kwargs):
    """Updates the parts listing from the cloud."""
    # Update in the container so that it will use the parts at build time
    build_environment = env.BuilderEnvironmentConfig()
    if not build_environment.is_host:
        project_options = get_project_options(**kwargs)
        lifecycle.containerbuild('update', project_options)

    # Parts can be defined and searched from any folder on the host, so
    # regardless of using containers we always update these as well
    remote_parts.update()
示例#2
0
文件: parts.py 项目: mvo5/snapcraft
def update(ctx, **kwargs):
    """Updates the parts listing from the cloud."""
    # Update in the container so that it will use the parts at build time
    build_environment = env.BuilderEnvironmentConfig()
    if not build_environment.is_host:
        project = get_project(**kwargs)
        project_config = project_loader.load_config(project)
        lifecycle.containerbuild("update", project_config)

    # Parts can be defined and searched from any folder on the host, so
    # regardless of using containers we always update these as well
    remote_parts.update()
示例#3
0
    def setUp(self):
        super().setUp()

        self.useFixture(fixture_setup.FakeParts())
        remote_parts.update()
示例#4
0
文件: parts.py 项目: msis/snapcraft
def update(ctx):
    """Updates the parts listing from the cloud."""
    remote_parts.update()
示例#5
0
    def setUp(self):
        super().setUp()

        self.useFixture(fixture_setup.FakeParts())
        remote_parts.update()