Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

write all hardmask overrides to a single file per @dennisjbell

  • Loading branch information...
commit 1d9098b9eefc549959ea9e4009606a8c325091ce 1 parent 743c3a9
Seamus Abshere seamusabshere authored
Showing with 9 additions and 6 deletions.
  1. +9 −6 cookbooks/emerge/definitions/enable_package.rb
15 cookbooks/emerge/definitions/enable_package.rb
View
@@ -8,18 +8,21 @@
end
# won't override a hard-mask
- update_file "add #{full_name} to package.keywords" do
+ p = "/etc/portage/package.keywords/local"
+ update_file "add #{full_name} to #{p}" do
action :append
- path "/etc/portage/package.keywords/local"
+ path p
body "=#{full_name}"
- not_if "grep '=#{full_name}' /etc/portage/package.keywords/local"
+ not_if "grep '=#{full_name}' #{p}"
end
if params[:override_hardmask]
- update_file "add #{full_name} to package.unmask" do
- action :rewrite
- path "/etc/portage/package.unmask/#{full_name.gsub(/\W/, '_')}"
+ p = "/etc/portage/package.unmask/engineyard_overrides"
+ update_file "add #{full_name} to #{p}" do
+ action :append
+ path p
body "=#{full_name}"
+ not_if "grep '=#{full_name}' #{p}"
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.