Skip to content

Add -S option when calling add-apt-repository for a line starting with deb#771

Open
verterok wants to merge 2 commits intojuju:masterfrom
verterok:add-apt-repo_jammy
Open

Add -S option when calling add-apt-repository for a line starting with deb#771
verterok wants to merge 2 commits intojuju:masterfrom
verterok:add-apt-repo_jammy

Conversation

@verterok
Copy link
Copy Markdown

@verterok verterok commented Apr 19, 2023

This is only for jammy or newer, and it just bypass any custom ppa logic in add-apt-repository by passing -S if the source line starts with deb.
fixes #770

@verterok verterok changed the title Add -S option when calling add-apt-repository for a line starting with deb (fix #770) Add -S option when calling add-apt-repository for a line starting with deb (fix [#770](https://github.com/juju/charm-helpers/issues/770)) Apr 19, 2023
@verterok verterok changed the title Add -S option when calling add-apt-repository for a line starting with deb (fix [#770](https://github.com/juju/charm-helpers/issues/770)) Add -S option when calling add-apt-repository for a line starting with deb Apr 19, 2023
@verterok
Copy link
Copy Markdown
Author

Take this as an idea on a possible fix, I'm far from an expert on charmhelper internals and this also requires some tests.
We are using this in our code to work around the issue.

Copy link
Copy Markdown
Contributor

@ajkavanagh ajkavanagh left a comment

Choose a reason for hiding this comment

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

Thanks very much for the code suggestion. I don't then the suggested patch actually works, and it definitely needs unit tests to verify that it does what is expected, please.

Comment thread charmhelpers/fetch/ubuntu.py
@ajkavanagh ajkavanagh added the Incomplete For an issue, needs more information. For a PR, needs further work. label May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Incomplete For an issue, needs more information. For a PR, needs further work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fetch.add_source fails for private ppa on jammy

2 participants