-
Notifications
You must be signed in to change notification settings - Fork 2.2k
(PUP-1537) add mark property for package #7815
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
(PUP-1537) add mark property for package #7815
Conversation
|
CLA signed by all contributors. |
|
jenkins please test this on |
lib/puppet/type/package.rb
Outdated
| warning "\"ensure=>held\" has been deprecated and will be removed in a future version, use \"mark=hold\" instead " | ||
| end | ||
| if @parameters[:mark] && [:absent, :purged, :held].include?(@parameters[:ensure].should) | ||
| raise ArgumentError, _("You cannot use \"mark\" property while \"ensure\" is one of [\"absent\", \"purged\", \"held\"]") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe wrap this string in single quotes to avoid escaping the double quotes inside
acceptance/tests/provider/package/dpkg_hold_true_package_is_latest.rb
Outdated
Show resolved
Hide resolved
acceptance/tests/provider/package/dpkg_hold_true_should_preserve_version.rb
Outdated
Show resolved
Hide resolved
811e06a to
4cfd26b
Compare
a1e5685 to
2db477f
Compare
This commit adds `mark` property for package providers on Debian(dpkg/apt/fink/aptitude) and Solaris(pgk) as alternative of using "held" value for `ensure`. Using "held" value for `ensure` works as before, but it shows deprecation warning and will be removed in further release. Allowed values for `mark` are "hold/none", default to "none". Mark can be specified with or without `ensure`, if `ensure` is missing it will default to "present". Mark cannot be specified together with "purged", "absent" or "held" values for `ensure`.
2db477f to
b6ab169
Compare
|
Kicking Travis |
|
jenkins please test this on |
This commit adds
markproperty for package providers onDebian(dpkg/apt/fink/aptitude) and Solaris(pgk) as
alternative of using "held" value for
ensure.Using "held" value for
ensureworks as before, but it showsdeprecation warning and will be removed in further release.
Allowed values for
markare "hold/none", default to "none".Mark can be specified with or without
ensure, ifensureismissing it will default to "present".
Mark cannot be specified together with "purged", "absent" or "held"
values for
ensure.