summaryrefslogtreecommitdiff
path: root/omnibus/config/projects
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2017-03-09 11:13:29 +0000
committerThom May <thom@chef.io>2017-03-09 12:02:35 +0000
commit83ca0b40d07586d4c12ed8a8ee9e14e9a4c5cbc3 (patch)
tree9066d27be79c894b72389ace735ae873f820f3d7 /omnibus/config/projects
parent873b7d0a2de2944d84ef47ae4c2248487196d4d9 (diff)
downloadchef-83ca0b40d07586d4c12ed8a8ee9e14e9a4c5cbc3.tar.gz
Compress debs and rpms with xztm/xc_compress
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'omnibus/config/projects')
-rw-r--r--omnibus/config/projects/chef.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/omnibus/config/projects/chef.rb b/omnibus/config/projects/chef.rb
index a0e490ceab..10c2cd21b3 100644
--- a/omnibus/config/projects/chef.rb
+++ b/omnibus/config/projects/chef.rb
@@ -53,6 +53,16 @@ dependency "chef-complete"
package :rpm do
signing_passphrase ENV["OMNIBUS_RPM_SIGNING_PASSPHRASE"]
+
+ unless rhel? && platform_version.satisfies?("< 6")
+ compression_level 1
+ compression_type :xz
+ end
+end
+
+package :deb do
+ compression_level 1
+ compression_type :xz
end
proj_to_work_around_cleanroom = self