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

Change default Debian package priority to optional #1913

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/fpm/package/deb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class FPM::Package::Deb < FPM::Package
end

option "--priority", "PRIORITY",
"The debian package 'priority' value.", :default => "extra"
"The debian package 'priority' value.", :default => "optional"

option "--use-file-permissions", :flag,
"Use existing file permissions when defining ownership and modes"
Expand Down Expand Up @@ -216,7 +216,7 @@ class FPM::Package::Deb < FPM::Package

def initialize(*args)
super(*args)
attributes[:deb_priority] = "extra"
attributes[:deb_priority] = "optional"
end # def initialize

private
Expand Down
4 changes: 2 additions & 2 deletions spec/fpm/package/deb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@
end

describe "priority" do
it "should default to 'extra'" do
expect(subject.attributes[:deb_priority]).to(be == "extra")
it "should default to 'optional'" do
expect(subject.attributes[:deb_priority]).to(be == "optional")
end
end

Expand Down