Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

project loader: install dirmngr prior to configuring package repositories #3294

Merged
merged 1 commit into from Sep 23, 2020

Conversation

cjp256
Copy link
Contributor

@cjp256 cjp256 commented Sep 22, 2020

This was previously addressed by installing the required packages
in the LXD provider's setup environment and Multipass images already
have the required packages installed. However, on Launchpad,
the required package would not be installed.

Install the required packages when additional package-repositories
are configured, including 'dirmngr' and 'gnupg' using
'Repo.install_build_packages()' which accounts for already-installed
packages.

Signed-off-by: Chris Patterson chris.patterson@canonical.com

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run ./runtests.sh static?
  • Have you successfully run ./runtests.sh tests/unit?

…ries

This was previously addressed by installing the required packages
in the LXD provider's setup environment and Multipass images already
have the required packages installed.  However, on Launchpad,
the required package would not be installed.

Install the required packages when additional package-repositories
are configured, including 'dirmngr' and 'gnupg' using
'Repo.install_build_packages()' which accounts for already-installed
packages.

Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
@cjp256
Copy link
Contributor Author

cjp256 commented Sep 22, 2020

Tested locally with multipass, lxd, and remotely on Launchpad: https://launchpad.net/~cjp256/+snap/snapcraft-colcon-talker-listener-3597c3/+build/1125676

Copy link
Collaborator

@sergiusens sergiusens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, have one suggestion

snapcraft/internal/project_loader/_config.py Show resolved Hide resolved
@sergiusens sergiusens merged commit e4a013f into master Sep 23, 2020
@sergiusens sergiusens deleted the dirmngr branch September 23, 2020 21:42
abitrolly pushed a commit to abitrolly/snapcraft that referenced this pull request Mar 31, 2021
…ries (canonical#3294)

This was previously addressed by installing the required packages
in the LXD provider's setup environment and Multipass images already
have the required packages installed.  However, on Launchpad,
the required package would not be installed.

Install the required packages when additional package-repositories
are configured, including 'dirmngr' and 'gnupg' using
'Repo.install_build_packages()' which accounts for already-installed
packages.

Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants