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

Look for correct sources.list.d file for apt::ppa #582

Merged
merged 2 commits into from
Feb 4, 2016
Merged

Look for correct sources.list.d file for apt::ppa #582

merged 2 commits into from
Feb 4, 2016

Conversation

imphil
Copy link

@imphil imphil commented Jan 15, 2016

In Ubuntu 15.10 the path of the apt sources file, which is generated by
apt-add-repository, changed to include the distid. This breaks apt::ppa
idempotency, since it does not recognize the repository is already
added.

Reported on puppet-users as well:
https://groups.google.com/forum/#!topic/puppet-users/YzeMyZYUo98

@daenney
Copy link

daenney commented Jan 15, 2016

This has broken the tests.

@tphoney
Copy link

tphoney commented Feb 1, 2016

@imphil thanks for the work, it does need rebased.

@tphoney
Copy link

tphoney commented Feb 1, 2016

sorry, i know it is annoying.

@imphil
Copy link
Author

imphil commented Feb 1, 2016

@tphoney , don't worry. I just didn't find time to get into the details of how to run the tests, as they still fail and need to be adjusted. Maybe this week.

@tphoney
Copy link

tphoney commented Feb 1, 2016

I appreciate the effort 👍

"man apt-add-repository" notes: "REPOSITORY can be either a line that
can be added directly to sources.list(5), in the form ppa:<user>/<ppa-name>
for adding Personal  Package  Archives".

Fix the tests to always use the format ppa:<user>/<ppa-name> when adding
PPAs.
In Ubuntu 15.10 the path of the apt sources file, which is generated by
apt-add-repository, changed to include the distid. This breaks apt::ppa
idempotency, since it does not recognize the repository is already
added.

Reported on puppet-users as well:
https://groups.google.com/forum/#!topic/puppet-users/YzeMyZYUo98
@imphil
Copy link
Author

imphil commented Feb 3, 2016

Here we go. Please let me know if that's OK or if other changes are needed.

@tphoney
Copy link

tphoney commented Feb 3, 2016

The code looks good to me @imphil. I am not an expert in apt, so i will get this raised in the community meeting tomorrow. Where it will be reviewed. Thanks again for the work !!

@daenney
Copy link

daenney commented Feb 3, 2016

It seems alright to me but we'd need to check on the Beaker tests before merging this.

@bmjen
Copy link

bmjen commented Feb 4, 2016

@tphoney @daenney Acceptance tests appear to run clean on PCCI. https://ci.voxpupuli.org/buildlogs/puppetlabs+puppetlabs-apt+582+1454517856+PASS

bmjen added a commit that referenced this pull request Feb 4, 2016
Look for correct sources.list.d file for apt::ppa
@bmjen bmjen merged commit cc53707 into puppetlabs:master Feb 4, 2016
@LukasAud LukasAud added the bugfix label Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants