-
Notifications
You must be signed in to change notification settings - Fork 2.2k
(PUP-6631): attempted to support apt-mark #7802
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
Conversation
|
Can one of the admins verify this patch? |
|
@ciprianbadescu thanks for the feedback. I have taken a look at #7773 and im not sure it does make sense to merge them. From a purely technical point of view you are not able to From a conceptual point of view i don't think the mark attribute needs to be exposed to the user. Any package managed [to be installed in some way] by puppet should just receive Finally it is possible for a package to have |
|
@b4ldr, thank you for answer
Right. On dpkg provider
I think we should leave the options open and allow any user to keep the current functionality.
Yes, but hold will prevent all changes on a package, ignoring auto/manual setting. I also added a question on https://puppetcommunity.slack.com/archives/C0W1X7ZAL to get more feedback on this. |
|
So would the suggestion be to have some new property [possibly :mark] in the dpkg provider that supported |
Yes (while I have to do some more check for the default value). |
|
Rekicking Travis |
|
have rebased, seems this change is now dependent on #7815 |
|
CLA signed by all contributors. |
|
I have rebased but its been a while since i looked at this. will need to go through it properly later to refresh my thinking |
|
@b4ldr , looks good. Can you add some spec tests for changed code - for example to test instances you can inspire from: https://github.com/puppetlabs/puppet/blob/master/spec/unit/provider/package/dpkg_spec.rb#L24 Similar to what you did for |
|
@ciprianbadescu I have had a go at adding some rspec but i have to admit im getting pretty out of my ruby/rspec depth and although my tests are green I'm pretty sure they are not actually testing anything. Wonder if someone more knowledgable could provide pointers :) |
ab0c896 to
6832a48
Compare
2588749 to
e09985d
Compare
|
CLA signed by all contributors. |
|
I just want to give a heads up that this breaks a usecase for us since updating to puppet version 6.19. We install a local deb file using the apt provider to make use of its dependency resolution (something dpkg does not do). Since apt does not make use of the This is valid because apt allows installing packages using this method. Since the apt-mark call has now been added as an internal step to the The reason for this is that apt-mark expects an installed package name as its argument which seems directly taken from the The package does get installed but the puppet run does end with an error now every time we run it. Is there something that can be done about this? |
|
#8495 should allow apt provider to install local packages |
|
@GabrielNagy No need to apologize! Thank you and @ciprianbadescu so much for the help. |
A very naive attempt at adding apt-mark support
@adrienthebo i saw an offer to help with this functionality on #5216 and wondered if would be able to comment on this change also, Its not quite working but i feel its getting close. however If i am miles away please say. thanks