-
Notifications
You must be signed in to change notification settings - Fork 462
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
Manage /etc/apt/preferences in the same way as /etc/sources.list #199
Comments
If you read through the 641245 you'll notice that it's not a bug, it's defined behaviour in Apt. If you want to add a comment to Apt you simply start a line with Therefor you can do something like this: file { '/etc/apt/preferences':
ensure => file,
content => 'Explanation: preferences are being managed by Puppet in preferences.d',
} If you have a pull request to fix this I'd be more than willing to review it and help out with the tests. |
Wrong. If you had bothered to test you would have seen that this commenting On Fri, Feb 21, 2014 at 11:56 AM, Daniele Sluijters <
|
You pointed us to bug 641245 which has nothing to do with empty files or the Explanation tag not working, it has to do with a faulty comment style which led me to assume you tried the
I did test. However my testing machines are Debian Unstable / Sid and the issue has already been solved there. I'm just another community member trying to help people get their fixes in. I do this in my free time to try and help others out, no need to be rude. As I said before, if you have code to fix this I'm more than happy to look it over and see if I can get it merged in. |
I am sorry that I was snarky and said "if you'd bothered to test" -- I do I am sorry to say I don't have a fix to contribute anymore : (. Please note that in Squeeze and Wheezy (at least as of today) the apt On Fri, Feb 21, 2014 at 4:46 PM, Daniele Sluijters <notifications@github.com
|
Debian apt-get will look in both /etc/apt/preferences as well as files in /etc/apt/preferences.d for pinning information. This module will purge /etc/apt/sources.list, but will not touch /etc/apt/preferences.
I have code to address this issue, though there is an underlying issue with 'apt-get upgrade' that requires a valid entry in /etc/apt/preferences to function. An empty file, or a file with a single comment, will throw an error (see Debian bug 641245). It makes the Puppet solution look a little sloppy.
The text was updated successfully, but these errors were encountered: