Skip to content

Commit

Permalink
Merge pull request #3600 from snapcore/remote-build
Browse files Browse the repository at this point in the history
remote build: use channel defaults (CRAFT-568)
  • Loading branch information
sergiusens committed Nov 26, 2021
2 parents e744669 + c095b34 commit 6382398
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
9 changes: 1 addition & 8 deletions snapcraft/internal/remote_build/_launchpad.py
Expand Up @@ -187,14 +187,7 @@ def _get_snap(self) -> Optional[Entry]:
def _issue_build_request(self, snap: Entry) -> Entry:
dist = self._lp.distributions["ubuntu"]
archive = dist.main_archive
return snap.requestBuilds(
archive=archive,
channels={
"core18": self._core18_channel,
"snapcraft": self._snapcraft_channel,
},
pocket="Updates",
)
return snap.requestBuilds(archive=archive, pocket="Updates",)

def _lp_load_url(self, url: str) -> Entry:
"""Load Launchpad url with a retry in case the connection is lost."""
Expand Down
8 changes: 1 addition & 7 deletions tests/unit/remote_build/test_launchpad.py
Expand Up @@ -318,13 +318,7 @@ def test_issue_build_request_defaults(self):
self.assertThat(
fake_snap.mock_calls,
Equals(
[
mock.call.requestBuilds(
archive="main_archive",
channels={"core18": "stable", "snapcraft": "stable"},
pocket="Updates",
)
]
[mock.call.requestBuilds(archive="main_archive", pocket="Updates",)]
),
)

Expand Down

0 comments on commit 6382398

Please sign in to comment.