From a88ff4f95f2b881a52e1820446b3973f6b561faf Mon Sep 17 00:00:00 2001 From: Scott Hain Date: Mon, 25 Apr 2016 11:44:39 -0700 Subject: Update override path --- omnibus/config/projects/chef.rb | 5 ++++- pkg.rb | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 pkg.rb diff --git a/omnibus/config/projects/chef.rb b/omnibus/config/projects/chef.rb index fa6f30b322..561dea8901 100644 --- a/omnibus/config/projects/chef.rb +++ b/omnibus/config/projects/chef.rb @@ -22,6 +22,9 @@ license "Apache-2.0" license_file "../LICENSE" build_iteration 1 +# Do not use __FILE__ after this point, use current_file. If you use __FILE__ +# after this point, any dependent defs (ex: angrychef) that use instance_eval +# will fail to work correctly. current_file ||= __FILE__ version_file = File.expand_path("../../../../VERSION", current_file) build_version IO.read(version_file).strip @@ -42,7 +45,7 @@ if windows? || rhel? end # Load dynamically updated overrides -overrides_path = File.expand_path("../../../../omnibus_overrides.rb", __FILE__) +overrides_path = File.expand_path("../../../../omnibus_overrides.rb", current_file) instance_eval(IO.read(overrides_path), overrides_path) override :"ruby-windows-devkit", version: "4.5.2-20111229-1559" if windows? && windows_arch_i386? diff --git a/pkg.rb b/pkg.rb new file mode 100644 index 0000000000..bb26f257d0 --- /dev/null +++ b/pkg.rb @@ -0,0 +1 @@ +package "chef-12.9.38-1.powerpc" -- cgit v1.2.1