Skip to content

Conversation

@ciprianbadescu
Copy link
Contributor

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.

@puppetcla
Copy link

CLA signed by all contributors.

@ciprianbadescu
Copy link
Contributor Author

jenkins please test this on
debian8-64a,debian8-32a,debian9-64a,debian9-32a,ubuntu1604-64a,ubuntu1604-32a,ubuntu1804-64a,solaris10-64a,solaris114-64a

@ciprianbadescu ciprianbadescu requested review from a team and removed request for a team November 19, 2019 08:10
@gimmyxd gimmyxd requested a review from a team November 26, 2019 14:46
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\"]")
Copy link
Contributor

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

@ciprianbadescu ciprianbadescu force-pushed the PUP-1537/dpkg-mark-hold-feature branch from 811e06a to 4cfd26b Compare January 10, 2020 15:48
@ciprianbadescu ciprianbadescu requested a review from a team January 10, 2020 15:48
@ciprianbadescu ciprianbadescu force-pushed the PUP-1537/dpkg-mark-hold-feature branch 2 times, most recently from a1e5685 to 2db477f Compare January 14, 2020 07:46
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`.
@ciprianbadescu ciprianbadescu force-pushed the PUP-1537/dpkg-mark-hold-feature branch from 2db477f to b6ab169 Compare January 14, 2020 08:10
@joshcooper
Copy link
Contributor

Kicking Travis

@joshcooper joshcooper closed this Jan 17, 2020
@joshcooper joshcooper reopened this Jan 17, 2020
@joshcooper
Copy link
Contributor

jenkins please test this on
debian8-64a,debian8-32a,debian9-64a,debian9-32a,ubuntu1604-64a,ubuntu1604-32a,ubuntu1804-64a,solaris10-64a,solaris114-64a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants